MultiptFSCS - sindizzy/DSW GitHub Wiki
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](50);
Random rnd = new Random();
Feature f = new Feature();
FeatureSet fs = new FeatureSet(f.FeatureType);
for (int i = 0; i < 50; i++)
{
c[i](i) = new Coordinate((rnd.Next(0, 50) + 360) - 90, (rnd.NextDouble() * 360) - 180);
fs.Features.Add(c[i](i));
}
fs.SaveAs("C:\\Temp\\test.shp", true);
}