sec_interp.exporters.shp_exporter module

Shapefile export utilities.

class sec_interp.exporters.shp_exporter.ShapefileExporter(settings: dict[str, Any])

Bases: BaseExporter

Exporter for Shapefile and GeoPackage formats.

export(output_path: Path, features_data: list[dict[str, Any]]) bool

Export features to shapefile or geopackage.

Parameters:
  • output_path – Output file path

  • features_data – List of dicts with ‘geometry’ and ‘attributes’ keys

Returns:

True if export successful, False otherwise

get_supported_extensions() list[str]

Get supported vector format extensions.