sharpmap and VB net

Topics: SharpMap v0.9 / v1.x
Jul 31, 2014 at 12:01 PM
Hello

i am working on a project in VB net to read and present s57 files . i tried the tutorials with no luck. i used the following code to open a s57 file.
    Dim mybox As MapBox = New MapBox()
    mybox.Width = 120
    mybox.Height = 120
    mybox.Left = 50
    mybox.Top = 50

    Me.Controls.Add(mybox)
    Dim vLayer As SharpMap.Layers.VectorLayer = New SharpMap.Layers.VectorLayer("0")
    Dim mymap As Map = New Map()

     vLayer.DataSource = New SharpMap.Data.Providers.Ogr(Byval filename as string, 0)

    mymap.Layers.Add(vLayer)
    mymap.ZoomToExtents()

    PictureBox1.Image = mymap.GetMap()
When i run the code i got the error message .ctor is ambiguous . this problem is earlier addressed as an issue and solved with Revision 72777. But still i got this error message
  • How do i solve this problem?
  • Is there a working example with vb net to read s57 files?
Thanks in advance
Coordinator
Aug 1, 2014 at 8:17 AM
I set up a VB.Net sample project and can confirm that the Ogr construnctors don't work in VB.Net.
They are already deprecated, I will remove them altogether.
Aug 1, 2014 at 8:51 AM
Thanks for the confirmation that it doesn't work in vb net . When will there be a version That works with vb net?
Coordinator
Aug 1, 2014 at 10:13 AM
I'm preparing an update for NTS/GeoAPI. After that we will be releasing SharpMap 1.2
Editor
Aug 4, 2014 at 1:47 PM
Is Verson 1.2 going to be branched from Trunk or 1.1?
Coordinator
Aug 4, 2014 at 2:37 PM
Edited Aug 4, 2014 at 2:38 PM
Robert_Smart wrote:
Is Verson 1.2 going to be branched from Trunk or 1.1?
From Branches/1.0. The Branch Branches/1.1 was created by accident, changes there have been merged into Branches/1.0
The version in Trunk is far from being releasable, sorry.