sec_interp.exporters.profile_exporters module

Profile export façade.

Specific exporters for profile data (Shapefiles).

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

Bases: BaseExporter

Exports the profile axes to a vector file (SHP, GPKG, DXF).

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

Export the profile axes to a vector file.

Parameters:
  • output_path – Path to the output file.

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

  • layer_name – Optional conceptual layer name.

get_supported_extensions() list[str]

Get supported file extensions.

Returns:

List of supported extensions.

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

Bases: BaseExporter

Exports the geological profile to a vector file (SHP, GPKG, DXF).

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

Export the geological profile to a vector file.

Parameters:
  • output_path – Path to the output file.

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

  • layer_name – Optional conceptual layer name.

get_supported_extensions() list[str]

Get supported file extensions.

Returns:

List of supported extensions.

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

Bases: BaseExporter

Exports the topographic profile line to a vector file (SHP, GPKG, DXF).

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

Export the topographic profile line to a vector file.

Parameters:
  • output_path – Path to the output file.

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

  • layer_name – Optional conceptual layer name.

get_supported_extensions() list[str]

Get supported file extensions.

Returns:

List of supported extensions.

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

Bases: BaseExporter

Exports the structural profile to a vector file (SHP, GPKG, DXF).

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

Export the structural profile to a vector file.

Parameters:
  • output_path – Path to the output file.

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

  • layer_name – Optional conceptual layer name.

get_supported_extensions() list[str]

Get supported file extensions.

Returns:

List of supported extensions.