<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div>Hi Even,</div><div><br data-mce-bogus="1"></div><div>Thanks, interesting.</div><div>The PROJ-8.1.0 exhibiting the odd behavior comes from source distributed with VTK-9.2.0. I'm assuming that version info is accurate, but I guess it might not be.</div><div><br data-mce-bogus="1"></div><div>So is the PROJ-7.1.0 behavior "correct"?</div><div><br data-mce-bogus="1"></div><div>Thanks,</div><div>Tom </div><div data-marker="__SIG_PRE__">--------------------------------------------------<br>Thomas C. O'Reilly<br>Monterey Bay Aquarium Research Institute<br>7700 Sandholdt Road<br>Moss Landing, California 95039-9644<br>831-775-1766 (voice)<br>831-775-1620 (FAX)<br>oreilly@mbari.org (email)<br>http://www.mbari.org (World-wide Web)<br> <br>"The machine does not isolate us from the great mysteries<br> of nature, but plunges us more deeply into them."<br> <br>   - ANTOINE DE SAINT-EXUPERY<br>     "Wind, Sand, and Stars" (1939)<br> </div><div><br></div><hr id="zwchr" data-marker="__DIVIDER__"><div data-marker="__HEADERS__"><b>From: </b>"Even Rouault" <even.rouault@spatialys.com><br><b>To: </b>"Tom O'Reilly" <oreilly@mbari.org>, "proj" <proj@lists.osgeo.org><br><b>Sent: </b>Wednesday, October 5, 2022 2:06:45 PM<br><b>Subject: </b>Re: [PROJ] Bugs in PROJ_LIB handling?<br></div><div><br></div><div data-marker="__QUOTED_TEXT__"><p>I don't confirm this. Your test case works fine for me with 8.1.0
      and a few later versions<br>
    </p>
    <p>$ g++ test.cpp -o mytest -I/home/even/install-proj-8.1.0/include
      -L/home/even/install-proj-8.1.0/lib -lproj<br>
      $ LD_LIBRARY_PATH=/home/even/install-proj-8.1.0/lib ldd mytest |
      grep proj<br>
          libproj.so.22 =>
      /home/even/install-proj-8.1.0/lib/libproj.so.22
      (0x00007f6d7f059000)<br>
      $ PROJ_LIB=/tmp/foo
      LD_LIBRARY_PATH=/home/even/install-proj-8.1.0/lib ./mytest<br>
      proj searchpath: /home/even/.local/share/proj:/tmp/foo<br>
      <br>
    </p>
    <div class="moz-cite-prefix">Le 05/10/2022 à 22:44, Tom O'Reilly a
      écrit :<br>
    </div>
    <blockquote>
      <div id="zimbraEditorContainer" class="4">
        <div>
          <p dir="ltr">How exactly is $PROJ_LIB intended
              to alter the PJ_INFO.searchpath? It appears to behave
              differently between PROJ-7.1.0 and PROJ-8.1.0:</p>
          <ul><li dir="ltr">
              <p dir="ltr">PROJ-7.1.0
                replaces the
                  last element of PJ_INFO.searchpath with $PROJ_LIB</p>
            </li><li dir="ltr">
              <p dir="ltr">PROJ-8.1.0
                  does not add the contents of $PROJ_LIB environment
                  variable to PJ_INFO.searchpath. </p>
            </li></ul>
          <p dir="ltr"><br>
            </p>
          <p dir="ltr">(These are the only two PROJ
              versions I've tested so far)</p>
          <p dir="ltr">I determined this behavior from
              this simple program:</p>
          <p dir="ltr"><br>
            </p>
          <p dir="ltr">#include <iostream></p>
          <p dir="ltr">#include <proj.h></p>
          <b><br>
          </b>
          <p dir="ltr">int main(int argc, char **argv) {<!-- --></p>
          <b><br>
          </b>
          <p dir="ltr">  PJ_INFO projInfo = proj_info();</p>
          <p dir="ltr">  std::cerr << "proj
              searchpath: " << projInfo.searchpath <<
              std::endl;  </p>
          <b><br>
          </b>
          <p dir="ltr">  return 0;</p>
          <p dir="ltr">}</p>
          <b><br>
          </b>
          <p dir="ltr"> </p>
          <p dir="ltr">PROJ-7.1.0, PROJ_LIB not set:</p>
          <p dir="ltr">proj searchpath:
              /home/oreilly/.local/share/proj:/usr/local/share/proj</p>
          <b><br>
          </b>
          <p dir="ltr">PROJ-7.1.0, PROJ_LIB=/tmp/mystuff:</p>
          <p dir="ltr">proj searchpath:
              /home/oreilly/.local/share/proj:/tmp/mystuff</p>
          <b><br>
          </b>
          <p dir="ltr">PROJ-8.1.0, PROJ_LIB not set:</p>
          <p dir="ltr">proj searchpath:
              /home/oreilly/.local/share/proj</p>
          <b><br>
          </b>
          <p dir="ltr">PROJ-8.1.0, PROJ_LIB=/tmp/mystuff:</p>
          <p dir="ltr">proj searchpath:
              /home/oreilly/.local/share/proj</p>
          <p dir="ltr"><br>
            </p>
          <p dir="ltr">Are there bugs in how PROJ_LIB is
              handled? What is the intended effect of PROJ_LIB on
              searchpath?</p>
          <p dir="ltr"><br>
            </p>
          <p dir="ltr">Thanks,</p>
          <p dir="ltr">Tom</p>
        </div>
        <div><br>
        </div>
        <div>--------------------------------------------------<br>
          Thomas C. O'Reilly<br>
          Monterey Bay Aquarium
            Research Institute<br>
          7700 Sandholdt Road<br>
          Moss Landing, California
            95039-9644<br>
          831-775-1766 (voice)<br>
          831-775-1620 (FAX)<br>
          <a href="mailto:oreilly@mbari.org" target="_blank" rel="nofollow noopener noreferrer">oreilly@mbari.org</a> (email)<br>
          <a href="http://www.mbari.org" target="_blank" rel="nofollow noopener noreferrer">http://www.mbari.org</a>
            (World-wide Web)<br>
           <br>
          "The machine does not
            isolate us from the great mysteries<br>
           of nature, but plunges us
            more deeply into them."<br>
           <br>
             - ANTOINE DE
            SAINT-EXUPERY<br>
               "Wind, Sand, and Stars"
            (1939)<br>
           </div>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre">_______________________________________________
PROJ mailing list
<a href="mailto:PROJ@lists.osgeo.org" target="_blank" rel="nofollow noopener noreferrer">PROJ@lists.osgeo.org</a>
<a href="https://lists.osgeo.org/mailman/listinfo/proj" target="_blank" rel="nofollow noopener noreferrer">https://lists.osgeo.org/mailman/listinfo/proj</a>
</pre>
    </blockquote>
    <pre class="moz-signature">-- 
<a href="http://www.spatialys.com" target="_blank" rel="nofollow noopener noreferrer">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre><br></div></div></body></html>