mapreader.load.geo_utils
Module Contents
Functions
|
Extract geographic information (shape, CRS and coordinates) from GeoTiff files |
|
Extract geographic information from GeoTiff files and reproject to specified CRS (target_crs). |
- mapreader.load.geo_utils.extractGeoInfo(image_path)
Extract geographic information (shape, CRS and coordinates) from GeoTiff files
- Parameters:
image_path (str) – Path to image
- Returns:
shape, CRS, coord
- Return type:
list
- mapreader.load.geo_utils.reproject_geo_info(image_path, target_crs='EPSG:4326', calc_size_in_m=False)
Extract geographic information from GeoTiff files and reproject to specified CRS (target_crs).
- Parameters:
image_path (str) – Path to image
target_crs (str, optional) – Projection to convert coordinates into, by default “EPSG:4326”
calc_size_in_m (str or bool, optional) – Method to compute pixel widths and heights, choices between “geodesic” and “great-circle” or “gc”, by default “great-circle”, by default False
- Returns:
shape, old CRS, new CRS, reprojected coord, size in meters
- Return type:
list