Nov 16, 2010 at 6:13 AM
Edited Nov 16, 2010 at 6:14 AM

I don't see GdalRasterLayer in the SharpMap Silverlight branch.  Is it possible to use a raster layer with Mapsui and the SharpMapProvider?

Nov 17, 2010 at 10:16 AM
Edited Nov 17, 2010 at 9:59 PM

Hi there,

It is not yet possible to use a GDAL layer.

The way rasters works in Mapsui is through a provider, not through a specific raster layer. An example of a raster provider is the WmsProvider. You can see a working sample if you replace 

  mapControl1.Map = ShapefileSample.CreateMap();


        mapControl1.Map = WmsSample.InitializeMap();

In Mapsui.WinForms.Form1.cs


You need the latest version (i just committed) because the wms url wasn't working anymore.

For GDAL I did not create a provider yet. You could try to create one yourself. The best way to proceed is to get everything working in SharpMapV1 (with the right version of the dlls in the right place), and move that to Mapsui.

In general Mapsui rasters work by treating the raster of the current view as a single IFeature with a geometry type of IRaster.  It is thus rendered in the same loop as any other feature.




Nov 18, 2010 at 5:26 PM

Wow, thanks for the detailed response.  I'll continue digging around the code and attempt to get started on a GDAL provider.