<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi,</p>
<p>A default PROJ_DATA value is "burnt" into libproj at its build
time. Its value evaluates to "${CMAKE_INSTALL_FULL_DATADIR}/proj"</p>
<p>Similarly for GDAL_DATA which evaluates to
"${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATADIR}/gdal"<br>
</p>
<p>Even<br>
</p>
<div class="moz-cite-prefix">Le 04/09/2023 à 06:53, Ryan Yang a
écrit :<br>
</div>
<blockquote type="cite"
cite="mid:CACqsvUYyp+ui+SMhDL=Ju4djPiremq6ah5nRcuHAaaG0mOWkPA@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div dir="ltr">Hi!
<div><br>
</div>
<div>I see that PROJ_DATA is an env variable to be set for
pointing to the directory containing proj.db. However, I was
wondering if there's a way to configure this to be set
during build time via some cmake arg or if this was intended
to be a dynamic env variable that can always change?</div>
<div><br>
</div>
<div>Asking because currently building gdal python bindings
for bazel, but it seems to require an env set for
PROJ_LIB/PROJ_DATA whenever I'm importing gdal.</div>
<div><br>
</div>
<div>Thanks in advance!</div>
<div>Ryan</div>
</div>
<br class="gmail-Apple-interchange-newline">
</div>
<br>
<div dir="ltr"
style="color:rgb(34,34,34);font-size:small;font-family:arial,sans-serif"><span
style="color:rgb(153,153,153)"><font size="1">This email may
be confidential and/or privileged. If you received this
communication by mistake, please don't forward it to anyone
else, delete all copies and attachments, and let me know
that it has gone to the wrong person.</font></span></div>
<div dir="ltr"
style="color:rgb(34,34,34);font-size:small;font-family:arial,sans-serif"><span
style="color:rgb(153,153,153)"><font size="1"><br>
</font></span></div>
<div dir="ltr"
style="color:rgb(34,34,34);font-size:small;font-family:arial,sans-serif"><span
style="color:rgb(153,153,153)"><font size="1">Statements made
above may reflect a potential business arrangement. Any such
statements are provided solely as a basis for further
discussion, and are not intended to be and do not constitute
a legally binding obligation. No legally binding obligations
will be created, implied, or inferred until an agreement is
duly executed in writing by all parties.</font></span></div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
gdal-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/gdal-dev">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
<a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
</body>
</html>