-
Notifications
You must be signed in to change notification settings - Fork 0
MpsCS
sindizzy edited this page Dec 30, 2020
·
4 revisions
Sample that demonstrates how to create a multipoint from randomly generated coordinates
using DotSpatial.Geometries;
using DotSpatial.Topology.Geometries;
private void button1_Click(object sender, EventArgs e)
{
Coordinate[]() c = new Coordinate[36](36);
Random rnd = new Random();
for (int i = 0; i < 36; i++)
{
c[i](i) = new Coordinate((rnd.NextDouble() + 360) - 180, (rnd.NextDouble() * 180) - 90);
}
MultiPoint Mps = new MultiPoint(c);
}