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

OGR Error

Topics: SharpMap v0.9 / v1.x
Apr 20, 2009 at 5:15 AM
I was write this code :

    Public Function SetMapInfoLayer(ByVal MIName As String, ByVal FileName As String, Optional ByVal MaxVisible As Integer = Nothing, Optional ByVal MinVisible As Integer = Nothing, Optional ByVal SRID As Integer = Nothing) As SharpMap.Layers.VectorLayer
        Dim OGRLayer As SharpMap.Layers.VectorLayer = New SharpMap.Layers.VectorLayer(MIName)
            OGRLayer.DataSource = New SharpMap.Data.Providers.Ogr(System.IO.Path.GetFullPath(FileName))'''''''''''''''''''''''''''''''''error
        Catch ex As Exception

        End Try
        If MaxVisible <> Nothing Then OGRLayer.MaxVisible = MaxVisible
        If MinVisible <> Nothing Then OGRLayer.MinVisible = MinVisible
        If SRID <> Nothing Then OGRLayer.SRID = 4326
        Return OGRLayer
    End Function

But i see this error :
'.ctor' is ambiguous because multiple kinds of members with this name exist in class 'SharpMap.Data.Providers.Ogr'.

Help me please