This project has moved and is read-only. For the latest updates, please go here.

sharpmap and VB net

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

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

    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)


    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
Aug 1, 2014 at 9: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 9: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?
Aug 1, 2014 at 11:13 AM
I'm preparing an update for NTS/GeoAPI. After that we will be releasing SharpMap 1.2
Aug 4, 2014 at 2:47 PM
Is Verson 1.2 going to be branched from Trunk or 1.1?
Aug 4, 2014 at 3:37 PM
Edited Aug 4, 2014 at 3: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.