Sharpmap 0.9 open s57 chart

Topics: Data Access, SharpMap v0.9 / v1.x, WinForms Controls
Mar 12, 2012 at 5:03 PM

i try to open a s57 chart usin sharpmap, i try this

            SharpMap.Map mymap = new SharpMap.Map(new Size(1024,768));
            SharpMap.Layers.VectorLayer vLayer = new SharpMap.Layers.VectorLayer("test");

            vLayer.DataSource = new SharpMap.Data.Providers.Ogr("AR201160.000");        

            this.pictureBox.Image = mymap.GetMap();

but nothing show

can help me


Mar 12, 2012 at 8:13 PM

S57 is a multi layer data file. Some of the layers don't even contain vector data. You need to specify which layer you want to show.

See WinFormSamples project for an example using a S57 data file.

Hth FObermaier

Mar 12, 2012 at 9:05 PM

thanks FObermaier, I see the example and try again