aws.osml.gdal.gdal_dem_tile_factory module
- class aws.osml.gdal.gdal_dem_tile_factory.GDALDigitalElevationModelTileFactory(tile_directory: str)[source]
Bases:
DigitalElevationModelTileFactory
This tile factory uses GDAL to load elevation data into numpy arrays. Any raster format supported by GDAL is fair game but the format must have sufficient metadata to populate the GDAL geo transform.
- get_tile(tile_path: str) Tuple[Any | None, GDALAffineSensorModel | None, ElevationRegionSummary | None] [source]
Retrieve a numpy array of elevation values and a sensor model.
TODO: Replace Any with numpy.typing.ArrayLike once we move to numpy >1.20
- Parameters:
tile_path – the location of the tile to load
- Returns:
an array of elevation values, a sensor model, and a summary or (None, None, None)