SharpMap and spatialite

Topics: SharpMap v0.9 / v1.x
Sep 19, 2012 at 1:15 PM

Hi ,

i am a beginner with sharpmap. Could you please help me creating a sharpmap from a SpatiaLite database. I have tables having geometry. I went through the basic tutorials . I have the datatables containing the geometries in my application but want it to use it to visualise as layers in sharpmap. Thank you very much in advance.


Sep 19, 2012 at 2:14 PM

The main problem is that I am getting this error : Error 1 The type or namespace name 'SpatiaLite' does not exist in the namespace 'SharpMap.Data.Providers' (are you missing an assembly reference?

Sep 19, 2012 at 2:40 PM

You need to reference the SharpMap.Extensions to get spatialite support. There are two spatialite providers, one that requites libspatialite-2.dll present and one that does not.

Have a look at the WinFormSamples project to see how it works.

Hth FObermaier

Oct 4, 2012 at 12:20 PM

HI All,

I could show S57 datset into my map .

But when fetching attributes I an getting layer name and object name , but can I get layer code and Object code.

Oct 5, 2012 at 8:29 AM

SharpMap always returns all attribute data that is avaliable for a feature.

If you have issues with the S57 file, you probably did not set your GDAL_DATA path correctly.

Hth FObermaier