sec_interp.exporters.vector_exporter module

Vector data export utilities.

class sec_interp.exporters.vector_exporter.VectorExporter(settings: dict[str, Any])

Bases: BaseExporter

Generic exporter for vector formats (SHP, GPKG, DXF).

export(output_path: Path, features_data: list[dict[str, Any]], layer_name: str | None = None) bool

Export features to a vector file.

Parameters:
  • output_path – Output file path.

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

  • layer_name – Optional layer name for multi-layer containers (GeoPackage).

Returns:

True if export successful, False otherwise.

get_supported_extensions() list[str]

Get supported vector format extensions.