using DotSpatial.Data; using DotSpatial.Geometries; private void button1_Click(object sender, EventArgs e) { Coordinate[]() c = new Coordinate[36](36); Random rnd = new Random(); for (int i = 0; i < 36; i++) { c[i](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); }
There was an error while loading. Please reload this page.