io.geospatial
vhrharmonize.io.geospatial
¶
calculate_raster_overviews(input_image_path, overview_scales, *, resampling='nearest')
¶
Build internal raster overviews. Args: input_image_path: Input raster path. overview_scales: Requested overview decimation factors. resampling: Rasterio overview resampling method name. Returns: Input raster path after overview creation.
shp_to_gpkg(input_shp_path, output_gpkg_path, override_projection_epsg=None)
¶
Convert a shapefile to a GeoPackage. Args: input_shp_path: Input shapefile path. output_gpkg_path: Output GeoPackage path. override_projection_epsg: Optional CRS EPSG override to assign without reprojection. Returns: None.
get_image_percentile_value(input_image_path, percentile=50.0, mask=None, override_mask_crs_epsg=None)
¶
Compute a raster percentile value. Args: input_image_path: Input raster path. percentile: Requested percentile in the inclusive range 0 to 100. mask: Optional vector mask path used to limit sampled pixels. override_mask_crs_epsg: Optional CRS EPSG override for the mask. Returns: Percentile value from valid raster pixels.