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); }
There was an error while loading. Please reload this page.