You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sindizzy edited this page Dec 23, 2020
·
3 revisions
Sample code that demonstrates how to buffer a randomly generated point.
ImportsDotSpatial.GeometriesImportsDotSpatial.Topology.GeometriesPrivateSubbutton1_Click(senderAsObject,eAsEventArgs)DimcoordsAsNewCoordinate()DimrndAsNewRandom()coords=NewCoordinate((rnd.NextDouble()*360)-180,(rnd.NextDouble()*180)-90)DimpAsNewPoint(coords)'This will get the area of the buffer.DimareaAsDouble=p.Buffer(500).AreaEndSub