<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<font face="Times New Roman, Times, serif">That's it. I exported
PROJ_DEBUG=5, and restarted the server. In the log I see a proj
error message: "pj_open_lib <path>/test.ntv2 failed",
followed by the PostGIS error message. The location for ntv2-files
seems to be:<br>
<br>
<postgresql install dir>/share/contrib/postgis-2.1/proj<br>
<br>
So I copied the ntv2 file there, restarted the server again, and
the whole thing works.<br>
<br>
Is this a bug? Even when I give an absolute path for the
ntv2-file, it gets appended to the above location. And I would
prefer the ntv2 files to be read from the standard proj
installation directory. It's given with configure, so that
shouldn't be a problem. Or should the postgresql server only have
access to its own install dir? In that case, this should be
documented.<br>
<br>
Anyway, thanks Howard, for the fast reply.<br>
<br>
Jan<br>
<br>
<br>
<br>
<br>
</font>
<div class="moz-cite-prefix">On 01/17/2013 03:19 PM, Howard Butler
wrote:<br>
</div>
<blockquote
cite="mid:8CDAD2F5-914B-4F88-9C20-C656F67668D9@gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<div>Setting PROJ_DEBUG=ON in the shell environment before
starting postgres might be instructive. <br>
<br>
On Jan 17, 2013, at 8:11 AM, Jan Hartmann <<a
moz-do-not-send="true" href="mailto:j.l.h.hartmann@uva.nl">j.l.h.hartmann@uva.nl</a>>
wrote:<br>
<br>
</div>
<blockquote type="cite">
<div> <font face="Times New Roman, Times, serif">Or perhaps the
place in the source code that generates the error message:</font><br>
<font face="Times New Roman, Times, serif"><br>
</font>
<div class="moz-forward-container"><font face="Times New
Roman, Times, serif">ERROR: transform: couldn't project
point (155000 463000 0): failed to load datum shift file
(-38)<br>
</font><br>
<font face="Times New Roman, Times, serif">I did several
greps on the postgis-2.1.0SVN tree, without any result</font><br>
<br>
-------- Original Message --------
<table class="moz-email-headers-table" border="0"
cellpadding="0" cellspacing="0">
<tbody>
<tr>
<th nowrap="nowrap" valign="BASELINE" align="RIGHT">Subject:
</th>
<td>[postgis-users] Location of nadgrid file</td>
</tr>
<tr>
<th nowrap="nowrap" valign="BASELINE" align="RIGHT">Date:
</th>
<td>Thu, 17 Jan 2013 14:46:08 +0100</td>
</tr>
<tr>
<th nowrap="nowrap" valign="BASELINE" align="RIGHT">From:
</th>
<td>Jan Hartmann <a moz-do-not-send="true"
class="moz-txt-link-rfc2396E"
href="mailto:j.l.h.hartmann@uva.nl"><j.l.h.hartmann@uva.nl></a></td>
</tr>
<tr>
<th nowrap="nowrap" valign="BASELINE" align="RIGHT">Reply-To:
</th>
<td>PostGIS Users Discussion <a
moz-do-not-send="true"
class="moz-txt-link-rfc2396E"
href="mailto:postgis-users@lists.osgeo.org"><postgis-users@lists.osgeo.org></a></td>
</tr>
<tr>
<th nowrap="nowrap" valign="BASELINE" align="RIGHT">To:
</th>
<td><a moz-do-not-send="true"
class="moz-txt-link-rfc2396E"
href="mailto:postgis-users@lists.osgeo.org"><postgis-users@lists.osgeo.org></a></td>
</tr>
</tbody>
</table>
<br>
<br>
<font face="Times New Roman, Times, serif">Can anyone tell
me where the nadgrids-file, as used by proj4 to apply grid
shifts to a projection, should be installed for postgis? I
produced one, put it in the standard proj installation
directory (/usr/share/proj), and it works from the
commandline with cs2cs. However, when I put an entry in
the postgis spatial_ref_sys table for a new projection
with this nadgrids file, the st_transform command says:
"failed to load datum shift file (-38). It also happens
when I put in the whole path. What should I do?<br>
<br>
Jan </font><br>
<br>
</div>
<br>
</div>
</blockquote>
<blockquote type="cite">
<div><Attached Message Part></div>
</blockquote>
<blockquote type="cite">
<div><span>_______________________________________________</span><br>
<span>postgis-users mailing list</span><br>
<span><a moz-do-not-send="true"
href="mailto:postgis-users@lists.osgeo.org">postgis-users@lists.osgeo.org</a></span><br>
<span><a moz-do-not-send="true"
href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users">http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users</a></span><br>
</div>
</blockquote>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
postgis-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:postgis-users@lists.osgeo.org">postgis-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users">http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users</a>
</pre>
</blockquote>
<br>
</body>
</html>