Пример #1
0
 public static ShapeFileModel OpenFile(string file, ProjectionInfo projection)
 {
     var res = new ShapeFileModel();
     res.File = file;
     res.Shape = Shapefile.OpenFile(file);
     if (projection != null) res.Shape.Reproject(projection);
     return res;
 }
Пример #2
0
 public ShapeFileDataReader(ShapeFileModel model, bool addFileIdentifier)
     : base(GetTableInfo(model.Shape.DataTable, addFileIdentifier))
 {
     _model = model;
     _addFileIdentifier = addFileIdentifier;
 }
Пример #3
0
 public ShapeFileVertexReader(ShapeFileModel model, bool addFileIdentifier)
     : base(GetStructure(addFileIdentifier))
 {
     _model = model;
     _addFileIdentifier = addFileIdentifier;
 }