<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 2, 2016 at 9:41 AM, Bas Couwenberg <span dir="ltr"><<a href="mailto:sebastic@xs4all.nl" target="_blank">sebastic@xs4all.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">On 2016-11-02 09:11, Roger Oberholtzer wrote:<br>
> On Tue, Nov 1, 2016 at 4:06 PM, Bas Couwenberg <<a href="mailto:sebastic@xs4all.nl">sebastic@xs4all.nl</a>><br>
> wrote:<br>
>> Which has been fixed in 4.9.3 with:<br>
>><br>
>> <a href="https://github.com/OSGeo/proj.4/pull/349" rel="noreferrer" target="_blank">https://github.com/OSGeo/proj.<wbr>4/pull/349</a><br>
><br>
> I have updated to 4.9.3 as a test. However, I am still not seeing the<br>
> grid<br>
> file even being accessed. It has to at least try to open it, right? I<br>
> don't<br>
> even see it try and fail. It simply does not try.<br>
<br>
</span>Yes, if you enable PROJ.4 debug output (using the PROJ_DEBUG=3<br>
environment variable) your should see pj_open_lib(rdtrans2008.gsb) and<br>
pj_open_lib(naptrans2008.gtx).<br>
<br>
From the debug output I linked in the earlier message out this issue:<br>
<br>
Test: 05 Zuid-Limburg<br>
Exec: cs2cs -r +init=epsg:4258 +to +init=rdnap:rdnap -f %.4f<br>
Input: 50.792584908 5.773795547 174.9478<br>
STDERR: pj_open_lib(epsg): call fopen(./epsg) - succeeded<br>
<br>
pj_open_lib(rdnap): call fopen(./rdnap) - succeeded<br>
<br>
pj_open_lib(rdtrans2008.gsb): call fopen(./rdtrans2008.gsb) - succeeded<br>
<br>
NTv2 NL_ALL 63x65: LL=(2.5,50.5) UR=(7.66666667,55.8333333)<br>
<br>
NTv2 NL_LAND 561x421: LL=(3,50.5) UR=(7.66666667,54)<br>
<br>
NTv2 - loading grid NL_LAND<br>
pj_open_lib(rdtrans2008.gsb): call fopen(./rdtrans2008.gsb) - succeeded<br>
<br>
pj_apply_gridshift(): used NL_LAND<br>
pj_open_lib(naptrans2008.gtx): call fopen(./naptrans2008.gtx) -<br>
succeeded<br>
<br>
GTX 311x641: LL=(2.5,50.5) UR=(7.66666667,55.8333333)<br>
pj_open_lib(naptrans2008.gtx): call fopen(./naptrans2008.gtx) -<br>
succeeded<br>
<br>
pj_apply_gridshift(): used GTX Vertical Grid Shift File<br>
Output: 182260.4500 311480.6701 129.0000<br>
Expect: 182260.4500 311480.6700 129.000<br>
Test OK: From ETRS89 to RD/NAP - 05 Zuid-Limburg (Not identical, but<br>
within margin)<br>
<div class="gmail-HOEnZb"><div class="gmail-h5"><br></div></div></blockquote><div><br>I get:<br><br>% PROJ_DEBUG=3 cs2cs -r +to +init=rdnap:rdnap -f %.4f<br>pj_open_lib(rdnap): call fopen(/opt/rsoft/lib/proj/rdnap) - succeeded<br><br>pj_open_lib(proj_def.dat): call fopen(/opt/rsoft/lib/proj/proj_def.dat) - succeeded<br><br>50.792584908 5.773795547 174.9478<br>pj_open_lib(naptrans2008.gtx): call fopen(/opt/rsoft/lib/proj/naptrans2008.gtx) - succeeded<br><br>GTX 311x641: LL=(2.5,50.5) UR=(7.66666667,55.8333333)<br>pj_open_lib(naptrans2008.gtx): call fopen(/opt/rsoft/lib/proj/naptrans2008.gtx) - succeeded<br><br>pj_apply_gridshift(): used GTX Vertical Grid Shift File<br>182225.9086 311388.1617 128.9976<br><br><br><br></div><div>I wonder why I don't get the NTv2 debug statements.<br></div></div><br>-- <br><div class="gmail_signature">Roger Oberholtzer</div>
</div></div>