alatas / GeoJSON4EntityFramework

Create GeoJSON from Entity Framework Spatial Data or WKT

Home Page:https://alatas.org/GeoJSON4EntityFramework/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MultiLineString serialization

tkalcec opened this issue · comments

MultiLineString is serialized as empty.
This might fix it.

MultiLineString.vb

Public Overrides ReadOnly Property Coordinates()
Get
Try
If LineStrings.Count = 0 Then
Return New Double() {}
Else
Dim out(0)()() As Double
Parallel.For(0, LineStrings.Count, Sub(i)
out(i) = LineStrings(i).Coordinates
End Sub)

                Return out
            End If
        Catch ex As Exception
            Return New Double() {}
        End Try
    End Get

End Property