[gdal-dev] Issue with Robinson projection

afernandez afernandez at odyhpc.com
Mon Jan 13 14:36:50 PST 2025


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
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20250113/fb5d85b8/attachment.htm>


More information about the gdal-dev mailing list