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];
            Random rnd = new Random();
            for (int i = 0; i < 36; i++)
            {
                c[i] = new Coordinate((rnd.NextDouble() + 360) - 180, (rnd.NextDouble() * 180) - 90);
            }
            MultiPoint Mps = new MultiPoint(c);
        }

Last edited Jul 13, 2010 at 2:36 PM by AlamoMan, version 3