Feb 24, 2010 at 11:32 AM
Edited Feb 24, 2010 at 1:29 PM
S-57 is a multi layer file. You must specify which layer you want to address with the provider. If you don't do that, Layer 0 is chosen, which may not have geometry data.
Int32 someLayerNumber = 12;
vLayer.DataSource = new SharpMap.Data.Providers.Ogr(@"test.000", someLayerNumber);
String someLayerName = "FAIRWY";
vLayer.DataSource = new SharpMap.Data.Providers.Ogr(@"test.000", someLayerName);
to setup your datasource.
If you want to use several layers of test.000, you need to have a layer/datasource pair for each.
If there are 2.5D geometries in the dataset, Parsing the wkb geometries will still fail.