This project has moved and is read-only. For the latest updates, please go here.

gdalRasterLayer load of VRT file and coloring bug

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

I am loading a gdal layer of VRT type ( 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 (



Jan 14, 2010 at 12:34 PM

Hi Agelos,

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



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

Hi FObermaier,

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

any other ideas ?