This project is read-only.

Sample code that demonstrates how to create a Multi Point Feature

Imports DotSpatial.Data
Imports DotSpatial.Geometries

Private Sub button1_Click(sender As Object, e As EventArgs)
	Dim c As Coordinate() = New Coordinate(35) {}
	Dim rnd As New Random()
	For i As Integer = 0 To 35
		c(i) = New Coordinate((rnd.[Next](50) + 360) - 180, (rnd.NextDouble() * 180) - 90)
	Dim Mps As New MultiPoint(c)
	Dim f As New Feature(Mps)
	Dim fs As New FeatureSet(f.FeatureType)
	fs.SaveAs("C:\Temp\test.shp", True)
End Sub

Last edited Jul 13, 2010 at 4:11 PM by AlamoMan, version 2