Exemplo n.º 1
0
 public void Export(string folder)
 {
     foreach (VectorLayer layer in _map.Layers)
     {
         var exporter = new ShapefileExporter(layer);
         exporter.Export(folder, layer.Name);
     }
 }
Exemplo n.º 2
0
 public void Export(string folder, string name)
 {
     if (this._layer.Features.Count == 0)
     {
         return;
     }
     using (var writer = ShapeFileWriter.CreateWriter(folder, name, this.GetShapeType(), this.GetFields()))
     {
         foreach (var feature in this._layer.Features)
         {
             writer.AddRecord(ShapefileExporter.GetPoints(feature), feature.GeoData.Count, ShapefileExporter.GetFieldData(feature));
         }
     }
 }