Re: Convert BoundingBox data into lat/lon
Guillaume Lostis
Hi, The rasterio.warp.transform_bounds function should do what you want: https://rasterio.readthedocs.io/en/latest/api/rasterio.warp.html#rasterio.warp.transform_bounds Pass it the CRS of your dataset as src_crs, CRS({'init': 'EPSG:4326'}) as dst_crs, and your bounds, and you will get your bounds in lon/lat as output. Regards, Guillaume Lostis
Hi, I need to convert the bounding box data of a TIF file to lat/lon co-ordinates so I can request data from another API
|
|