-
Notifications
You must be signed in to change notification settings - Fork 0
MultilsFSCS
sindizzy edited this page Dec 30, 2020
·
4 revisions
using DotSpatial.Data;
using DotSpatial.Topology;
private void button1_Click(object sender, EventArgs e)
{
Random rnd = new Random();
Feature f = new Feature();
FeatureSet fs = new FeatureSet(f.FeatureType);
for (int ii = 0; ii < 40; ii++)
{
Coordinate[]() coord = new Coordinate[36](36);
for (int i = 0; i < 36; i++)
{
coord[i](i) = new Coordinate((rnd.NextDouble() * 360) - 180, (rnd.NextDouble() * 180) - 90);
}
LineString ls = new LineString(coord);
f = new Feature(ls);
fs.Features.Add(f);
}
fs.SaveAs("C:\\Temp\\test.shp", true);
}