shapefile¶
Exporter for the ESRI Shapefile format.
Source code: shapefile
Package Contents¶
- class shapefile.Config¶
Bases:
gws.base.exporter.ConfigShapefile Exporter configuration.
- shapefile.export_features(features: list[gws.Feature], target_path: str, er: gws.ExportResult, notify: Callable | None = None)¶
Export features to a shapefile.
- Parameters:
features – list of features to export (must have the same model)
target_path – path to the output shapefile
er – export result object to update with progress and errors
notify – optional callback to notify about progress, called with ‘feature’ argument
- class shapefile.Object¶
Bases:
gws.base.exporter.Object- supportsRaster = False¶
- supportsVector = True¶
- run(ea)¶
- class shapefile.Props¶
Bases:
gws.base.exporter.PropsShapefile Exporter properties.
- shapefile.run_export(ea: gws.ExportArgs) gws.ExportResult¶
Run the export for multiple features, make a zip archive with a shapefile per model.