-
Notifications
You must be signed in to change notification settings - Fork 0
MultilsFSVB
sindizzy edited this page Dec 23, 2020
·
3 revisions
Imports DotSpatial.Data
Imports DotSpatial.Geometries
Private Sub button1_Click(sender As Object, e As EventArgs)
Dim rnd As New Random()
Dim f As New Feature()
Dim fs As New FeatureSet(f.FeatureType)
For ii As Integer = 0 To 39
Dim coord As Coordinate() = New Coordinate(35) {}
For i As Integer = 0 To 35
coord(i) = New Coordinate((rnd.NextDouble() * 360) - 180, (rnd.NextDouble() * 180) - 90)
Next
Dim ls As New LineString(coord)
f = New Feature(ls)
fs.Features.Add(f)
Next
fs.SaveAs("C:\Temp\test.shp", True)
End Sub