Helper function used to retrieve the bounding box of a specified spatial file recognized by GDAL or OGG: the function reads the extent using gdalinfo or ogrinfo, converting it to a specified CRS.
bbox_from_file(file_path, out_crs)
file_path | The path of the spatial file. |
---|---|
out_crs | The output projection (string format). |
License: GPL 3.0