sec_interp.exporters.shp_exporter module

Shapefile exporter module for vector data.

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

Bases: BaseExporter

Exporter for Shapefile and GeoPackage formats.

Initialize the exporter with settings.

Parameters:

settings – Dictionary containing export settings such as: - width: Output width in pixels - height: Output height in pixels - dpi: Dots per inch for resolution - background_color: Background color (QColor) - legend_renderer: Optional renderer for legend overlay

get_supported_extensions() list[str]

Get supported vector format extensions.

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