gdalRasterLayer load of VRT file and coloring bug

Topics: SharpMap v0.9 / v1.x
Jan 14, 2010 at 8:33 AM

I am loading a gdal layer of VRT type (http://www.gdal.org/gdal_vrttut.html) using  gdalRasterLayer.

If i remove the layer and the nadd another vrt file with different <lut> color values these are not taken into account and it sharpmap displays the same color values no matter what.

Any ideas if i should perform any other special operation to my gdalRasterLayer to force reloading of LUT values ?

you can find my 2 vrt files and the required asc file here to test it (http://147.102.85.132/VRTreloadWithGdal/)

 

 

Coordinator
Jan 14, 2010 at 11:34 AM

Hi Agelos,

just replacing the layers is not enough. You need to invoke the Refresh() function of the MapImage control.

Hth

FObermaier

Jan 14, 2010 at 4:00 PM
Edited Jan 14, 2010 at 4:09 PM

Hi FObermaier,

I already tried to  invoke the Refresh() and the update() functions of the MapImage control without success

any other ideas ?

:(