I'm trying to merge some rasters with
rasterio.merge.merge. They are in the same CRS, EPSG:3857. I want the merged raster to cover the whole earth. Exactly the range (in coordinates):
xmin, ymin, xmax, ymax = -180.0225, -90.0225, 179.9775, 90.0225.
The problem is that when using the
bounds parameter of this function I have to give these limits in the same CRS of the rasters. How can I convert the tuple
xmin, ymin, xmax, ymax from regular coordinates to projected coordinates in EPSG:3857?