<div dir="auto"><a href="https://spatialreference.org/ref/esri/54030/">https://spatialreference.org/ref/esri/54030/</a></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Tue, 14 Jan 2025, 00:08 Even Rouault via gdal-dev, <<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>

  
    
  
  <div>
    <p><br>
    </p>
    <div>Le 13/01/2025 à 23:36, afernandez via
      gdal-dev a écrit :<br>
    </div>
    <blockquote type="cite">
      
      <div>
        <div dir="auto" id="m_-1048947925462082108compose-body-wrapper">
          <div dir="auto">
            <div dir="auto">Hello,</div>
            <div dir="auto">The following snippet works fine</div>
            <div dir="auto">#        epsg = 54030            </div>
            <div dir="auto">        epsg = 4326            </div>
            <div dir="auto">        srs = osr.SpatialReference()</div>
            <div dir="auto">        srs.ImportFromEPSG(epsg)</div>
            <div dir="auto">However, and when I switch epsg to 54030
              (which I believe it's the value for the Robinson
              projection), it generates the error:</div>
            <div dir="auto">  File
              "/usr/lib/python3/dist-packages/osgeo/osr.py", line 772,
              in ImportFromEPSG</div>
            <div dir="auto">    return
              _osr.SpatialReference_ImportFromEPSG(self, *args)</div>
            <div dir="auto">RuntimeError: PROJ:
              proj_create_from_database: crs not found</div>
          </div>
        </div>
      </div>
    </blockquote>
    <p>54030 is not a EPSG CRS but a ESRI one, so use
      srs.SetFromUserInput("ESRI:54030")</p>
    <p>Even</p>
    <p>-- </p>
    <pre cols="72"><a href="http://www.spatialys.com" target="_blank" rel="noreferrer">http://www.spatialys.com</a>
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.</pre>
  </div>

_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank" rel="noreferrer">gdal-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</blockquote></div>