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

Tips on Speeding up GDALRasterLayer

Jan 7, 2011 at 5:51 PM

I was wondering if anybody has some tips on speeding up GDALRasterLayer in SharpMap 2.0.  I'm using WinForms/MapImage and when the map window is large the rendering gets extremely slow.  I've taken a quick look at tiling and GdalRasterLayerCachingProxy and was wondering if any of these would be potential solutions.  Also, is there a way to redraw the markers without having to perform calculations to redraw the raster if the map hasn't moved?

Jan 10, 2011 at 8:32 AM

Hello gsivorot,

looking at GdalRasterProvider.GetPreview(...) it should cache the image and return that if nothing changed. Maybe you can verify that.

Which one of the preview generators do you use? If you use a simple GeoTIFF, SimplePreview would be the way to go. Even AdvancedPreview should be faster than the SharpMapV1RasterLayerPreview.

Hth FObermaier