This project is read-only.

Sample code that demonstrates how to create a Multi Point Feature

using DotSpatial.Data;
using DotSpatial.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.Next(50) + 360) - 180, (rnd.NextDouble() * 180) - 90);
            }
            MultiPoint Mps = new MultiPoint(c);
            Feature f = new Feature(Mps);
            FeatureSet fs = new FeatureSet(f.FeatureType);
            fs.Features.Add(f);
            fs.SaveAs("C:\\Temp\\test.shp", true);
        }

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