sec_interp.exporters.profile_exporters module

Specific exporters for profile data (Shapefiles).

class sec_interp.exporters.profile_exporters.ProfileLineShpExporter(settings: dict[str, Any])

Bases: BaseExporter

Exports the topographic profile line to a Shapefile.

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 list of supported file extensions.

Returns:

List of supported extensions (e.g., [‘.png’, ‘.jpg’])

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

Export the topographic profile line to a Shapefile.

Parameters:
  • output_path – Path to the output Shapefile.

  • data – Dictionary containing ‘profile_data’ and ‘crs’.

class sec_interp.exporters.profile_exporters.GeologyShpExporter(settings: dict[str, Any])

Bases: BaseExporter

Exports the geological profile to a Shapefile.

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 list of supported file extensions.

Returns:

List of supported extensions (e.g., [‘.png’, ‘.jpg’])

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

Export the geological profile to a Shapefile.

Parameters:
  • output_path – Path to the output Shapefile.

  • data – Dictionary containing ‘geology_data’ and ‘crs’.

class sec_interp.exporters.profile_exporters.StructureShpExporter(settings: dict[str, Any])

Bases: BaseExporter

Exports the structural profile to a Shapefile.

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 list of supported file extensions.

Returns:

List of supported extensions (e.g., [‘.png’, ‘.jpg’])

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

Export the structural profile to a Shapefile.

Parameters:
  • output_path – Path to the output Shapefile.

  • data – Dictionary containing ‘structural_data’, ‘crs’, ‘dip_scale_factor’, and ‘raster_res’.

class sec_interp.exporters.profile_exporters.AxesShpExporter(settings: dict[str, Any])

Bases: BaseExporter

Exports the profile axes to a Shapefile.

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 list of supported file extensions.

Returns:

List of supported extensions (e.g., [‘.png’, ‘.jpg’])

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

Export the profile axes to a Shapefile.

Parameters:
  • output_path – Path to the output Shapefile.

  • data – Dictionary containing ‘profile_data’ and ‘crs’.