This project is read-only.

Sample code that demonstrates how to create a new Multi Point Feature Set

using DotSpatial.Data;
using DotSpatial.Topology;

        private void button1_Click(object sender, EventArgs e)
        {
            Coordinate[] c = new Coordinate[50];
            Random rnd = new Random();
            Feature f = new Feature();
            FeatureSet fs = new FeatureSet(f.FeatureType);
            for (int i = 0; i < 50; i++)
            {
                c[i] = new Coordinate((rnd.Next(0, 50) + 360) - 90, (rnd.NextDouble() * 360) - 180);
                fs.Features.Add(c[i]);
            }
           fs.SaveAs("C:\\Temp\\test.shp", true);
       }

Last edited May 20, 2015 at 6:07 PM by mbayles, version 3