<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Well,</p>
<p>In your code you can manage the location where GDAL looks for the
files with CPLPushFinderLocation.</p>
<p>In my case I have Perl modules, which depend on the GDAL Perl
module. In a test scenario for the first module it needs to ask
installation of the GDAL Perl module, which needs to ask for GDAL
itself to be installed. Then GDAL is really private to the GDAL
Perl module and the GDAL files are not easy to find by downstream
modules. I manage it so that the GDAL Perl module installs the
GDAL data files in a shared directory, whose name downstream
modules can find out by a known method (Perl module called
File::ShareDir). The module then pushes this to the GDAL finder,
and so GDAL can find its data files.</p>
<p>This is perhaps one code layer more than in your application but
anyway you need to arrange it so that the your installer stores
the name of the GDAL data directory somewhere it can find it in
runtime.</p>
<p>Hope this helps,<br>
</p>
<p>Ari<br>
</p>
<br>
<div class="moz-cite-prefix">14.02.2017, 17:12, Emmanuel d'Angelo
kirjoitti:<br>
</div>
<blockquote
cite="mid:49EAE458-4826-46F7-AF05-8E2A6CB8D263@pix4d.com"
type="cite">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<div>Thanks Ari for the interest!</div>
<div><br>
</div>
<div>Unfortunately, my target is to ship for all 3 major OSes
(linux, windows, macOS).</div>
<div>Regarding my build system, everything is glued by cmake. Not
sure if it's related, but I build (for now) GDAL as a dynamic
lib and PROJ4 as a static one. Any change here is possible if it
helps with the issue. </div>
<div><br>
</div>
<div>Emmanuel </div>
<div><br>
Le 14 févr. 2017 à 15:52, Ari Jolma <<a
moz-do-not-send="true" href="mailto:ari.jolma@gmail.com">ari.jolma@gmail.com</a>>
a écrit :<br>
<br>
</div>
<blockquote type="cite">
<div>
<meta content="text/html; charset=utf-8"
http-equiv="Content-Type">
<p>Emmanuel,</p>
<p>I think we need to know the OS you're using.</p>
<p>Ari<br>
</p>
<br>
<div class="moz-cite-prefix">14.02.2017, 16:48, Emmanuel
d'Angelo kirjoitti:<br>
</div>
<blockquote
cite="mid:CAADUMQoQ2uO2OKLaE818RPVBZH+2wg-6Pxp3iL30OKMvhLcBpg@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>Dear list,<br>
<br>
</div>
<div>I'm trying to package and distribute an application
that relies internally on GDAL for some raster / vector
manipulation. <br>
<br>
</div>
<div>It may happen in some cases that a user of the
application wants to take her outputs to a different
coordinate system (typically from some national system
to WGS84). As far as I can see, some of these
transformations rely on the content of GDAL data files
(such as pcs.csv or datum.csv).<br>
<br>
</div>
<div>I can install these files locally and use the
GDAL_DATA environment variable to find them from my
application. However, on the user side, what's the
recommended practice? <br>
Do I need to ensure that my users have a GDAL_DATA
variable set too with the correct data files? I've
looked at the build system files, but I couldn't find a
way to set this path relative to my application (which
would let me install these files inside the app package
and distribute them with the application).<br>
<br>
</div>
<div>Any hint to put me on the right track would be
greatly appreciated.<br>
<br>
</div>
<div>Best regards,<br>
<br>
</div>
<div>Emmanuel<br>
</div>
<div><br>
<br>
</div>
<div><br>
</div>
<div>
<div>
<div>
<div class="gmail_signature"
data-smartmail="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div dir="ltr">
<div style="font-size:12.8px">
<table border="0"
cellpadding="0"
cellspacing="0"
width="500">
<tbody>
<tr>
<td width="100"
align="left"><br>
</td>
<td width="10"
align="left"><br>
</td>
<td width="390"
align="left"><br>
<br>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
gdal-dev mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a moz-do-not-send="true" 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>
<br>
</div>
</blockquote>
<blockquote type="cite">
<div><span>_______________________________________________</span><br>
<span>gdal-dev mailing list</span><br>
<span><a moz-do-not-send="true"
href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a></span><br>
<span><a moz-do-not-send="true"
href="https://lists.osgeo.org/mailman/listinfo/gdal-dev">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a></span></div>
</blockquote>
</blockquote>
<br>
</body>
</html>