Le 13/01/2025 à 23:36, afernandez via gdal-dev a écrit :
Hello,
The following snippet works fine
# epsg = 54030
epsg = 4326
srs = osr.SpatialReference()
srs.ImportFromEPSG(epsg)
However, and when I switch epsg to 54030 (which I believe it's the
value for the Robinson projection), it generates the error:
File "/usr/lib/python3/dist-packages/osgeo/osr.py", line 772, in
ImportFromEPSG
return _osr.SpatialReference_ImportFromEPSG(self, *args)
RuntimeError: PROJ: proj_create_from_database: crs not found
54030 is not a EPSG CRS but a ESRI one, so use
srs.SetFromUserInput("ESRI:54030")
Even
--
http://www.spatialys.com
My software is free, but my time generally not.
Butcher of all kinds of standards, open or closed formats. At the end, this is
just about bytes.
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev