sec_interp.exporters.svg_exporter module¶
SVG exporter module for vector graphics.
- class sec_interp.exporters.svg_exporter.SVGExporter(settings: dict[str, Any])¶
Bases:
BaseExporterExporter for SVG vector format.
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 SVG extension.
- export(output_path: Path, map_settings) bool¶
Export map to SVG.
- Parameters:
output_path – Output file path
map_settings – QgsMapSettings instance configured for rendering
- Returns:
True if export successful, False otherwise