satellit_sam.core.geotiff

Auto-generated from satellit_sam/src/satellit_sam/core/geotiff.py by satellit_sam/scripts/generate_api_docs.py.

GeoTIFF metadata loading utilities for geospatial workflows.

Back to API index

Functions

No public module-level functions.

Classes

GeoTiffMeta

Metadata needed for mapping inventory points into raster pixel space.

Attributes

  • crs_wkt: str | None
  • height: int
  • nodata_band_1: float | None
  • origin_x: float
  • origin_y: float
  • pixel_size_x: float
  • pixel_size_y: float
  • width: int

Methods

load_tif
def load_tif(tif_path: Path) -> "GeoTiffMeta":
Load GeoTIFF metadata from disk.

Arguments

  • tif_path: Path to a GeoTIFF raster.

Returns

  • Parsed geospatial metadata for the raster.

Exceptions

  • FileNotFoundError: If the file cannot be opened by GDAL. ValueError: If the raster does not provide geotransform metadata.