# sec_interp.exporters.drillhole_exporters module

Exporters for drillhole data (Shapefiles).

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

  Bases: `BaseExporter`

  Exports drillhole traces 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: Any, data: dict[str, Any]) → bool

    Export drillhole traces to a Shapefile.

    Parameters:

      - output_path – Path to the output Shapefile.

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

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

  Bases: `BaseExporter`

  Exports drillhole intervals 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: Any, data: dict[str, Any]) → bool

    Export drillhole intervals to a Shapefile.

    Parameters:

      - output_path – Path to the output Shapefile.

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