sec_interp.exporters.drillhole_exporters module

Exporters for drillhole data (SHP, GPKG, DXF).

class sec_interp.exporters.drillhole_exporters.DrillholeIntervalVectorExporter(settings: dict[str, Any])

Bases: BaseExporter

Exports drillhole intervals to a vector file (SHP, GPKG, DXF).

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

Export drillhole intervals to a vector file.

Parameters:
  • output_path – Path to the output file.

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

  • layer_name – Optional conceptual layer name.

Returns:

True if export successful, False otherwise.

Return type:

bool

get_supported_extensions() list[str]

Get supported file extensions.

Returns:

List of supported extensions.

class sec_interp.exporters.drillhole_exporters.DrillholeTraceVectorExporter(settings: dict[str, Any])

Bases: BaseExporter

Exports drillhole traces to a vector file (SHP, GPKG, DXF).

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

Export drillhole traces to a vector file.

Parameters:
  • output_path – Path to the output file.

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

  • layer_name – Optional conceptual layer name.

Returns:

True if export successful, False otherwise.

Return type:

bool

get_supported_extensions() list[str]

Get supported file extensions.

Returns:

List of supported extensions.