I have the following geotif file. I wrote simple script to transform its coordinates into google maps coordinate system
import rasterio
import rasterio.features
import rasterio.warp
DATA = "/Users/Desktop/TextureUSDA_23/"
def main():
with rasterio.open(DATA + 'textureUSDA_eu23.tif') as dataset:
mask = dataset.dataset_mask()
print(dataset.crs)
for geom, val in rasterio.features.shapes(mask, transform=dataset.transform):
geom = rasterio.warp.transform_geom(dataset.crs, 'EPSG:4326', geom, precision=6)
print(geom)
if __name__ == "__main__":
main()
The output of this script is the list of the transformed coordinates i.e. [-4.414515, 57.507086]
. However, if I enter this coordinates then they will point to the indian ocean, but they should be placed in Europe.
Could you explain what am I missing?
Additional information about geotiff
PROJCS["GRS_1980_IUGG_1980_Lambert_Azimuthal_Equal_Area",GEOGCS["GCS_GRS_1980_IUGG_1980",DATUM["unknown",SPHEROID["GRS80",6378137,298.257222101]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]],PROJECTION["Lambert_Azimuthal_Equal_Area"],PARAMETER["latitude_of_center",52],PARAMETER["longitude_of_center",10],PARAMETER["false_easting",4321000],PARAMETER["false_northing",3210000],UNIT["metre",1,AUTHORITY["EPSG","9001"]]]