<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div>Hi all,</div><div><br data-mce-bogus="1"></div><div>Is there any reason why the deprecated syntax "+init=" doesn't give the same result as the new syntax?</div><div><br data-mce-bogus="1"></div><div><p style="margin: 0px; font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0);" data-mce-style="margin: 0px; font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: #000000;"><span style="font-variant-ligatures: no-common-ligatures;" data-mce-style="font-variant-ligatures: no-common-ligatures;">echo 3356123.5400 1303218.3090 5247430.6050 | ./cs2cs IGNF:RGR92 +to IGNF:REUN47</span></p><p style="margin: 0px; font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0);" data-mce-style="margin: 0px; font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: #000000;"><span style="font-variant-ligatures: no-common-ligatures;" data-mce-style="font-variant-ligatures: no-common-ligatures;">3353420.95<span class="Apple-tab-span" style="white-space: pre;" data-mce-style="white-space: pre;"> </span>1304075.02 5248935.14</span></p><p style="margin: 0px; font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0);" data-mce-style="margin: 0px; font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: #000000;"><span style="font-variant-ligatures: no-common-ligatures;" data-mce-style="font-variant-ligatures: no-common-ligatures;"><br data-mce-bogus="1"></span></p><p style="margin: 0px; font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0);" data-mce-style="margin: 0px; font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: #000000;"><span style="font-variant-ligatures: no-common-ligatures;" data-mce-style="font-variant-ligatures: no-common-ligatures;"><br data-mce-bogus="1"></span></p><p style="margin: 0px; font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0);" data-mce-style="margin: 0px; font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: #000000;"><span style="font-variant-ligatures: no-common-ligatures;" data-mce-style="font-variant-ligatures: no-common-ligatures;">echo 3356123.5400 1303218.3090 5247430.6050 | ./cs2cs +init=IGNF:RGR92 +to +init=IGNF:REUN47</span></p><p style="margin: 0px; font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0);" data-mce-style="margin: 0px; font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: #000000;"><span style="font-variant-ligatures: no-common-ligatures;" data-mce-style="font-variant-ligatures: no-common-ligatures;">3356123.54<span class="Apple-tab-span" style="white-space: pre;" data-mce-style="white-space: pre;"> </span>1303218.31 5247430.61</span></p></div><div><br data-mce-bogus="1"></div><div>Thanks in advance for your answers,</div><div><br data-mce-bogus="1"></div><div>N.</div><hr id="zwchr" data-marker="__DIVIDER__"><div data-marker="__HEADERS__"><b>De: </b>"Even Rouault" <even.rouault@spatialys.com><br><b>À: </b>"proj" <proj@lists.osgeo.org><br><b>Envoyé: </b>Vendredi 26 Mai 2023 21:50:27<br><b>Objet: </b>Re: [PROJ] Migrating to PROJ-9<br></div><div><br></div><div data-marker="__QUOTED_TEXT__"><p>Ah, and you should avoid using the "+init=" prefix. This is a
deprecated legacy syntax that doesn't enforce axis order of the
CRS definition (without practical consequence for IGNF: CRS since
they use "GIS friendly" axis order)<br>
</p>
<p>To help debugging this, please provide the output of:<br>
</p>
<p>PROJ_DEBUG=3 projinfo -s IGNF:LAMB93 -t IGNF:RGF93 -o PROJ<br>
</p>
<p>On my system I get:<br>
</p>
<p>pj_open_lib(proj.ini): call
fopen(/home/even/proj/install-proj-master/share/proj/proj.ini) -
succeeded<br>
pj_open_lib(proj.db): call
fopen(/home/even/proj/install-proj-master/share/proj/proj.db) -
succeeded<br>
Candidate operations found: 1<br>
-------------------------------------<br>
Operation No. 1:<br>
<br>
unknown id, Inverse of LAMBERT-93 + Conversion from RGF93
geographiques (dms) to RGF93 cartesiennes geocentriques, 0 m,
World<br>
<br>
PROJ string:<br>
+proj=pipeline<br>
+step +inv +proj=lcc +lat_0=46.5 +lon_0=3 +lat_1=44 +lat_2=49
+x_0=700000<br>
+y_0=6600000 +ellps=GRS80<br>
+step +proj=cart +ellps=GRS80<br>
<br>
</p>
<div class="moz-cite-prefix">Le 26/05/2023 à 21:46, Even Rouault a
écrit :<br>
</div>
<blockquote>
<p>Hi,</p>
<p>I get the expected 4070327.25 166078.93 4891298.61 result with
proj 6.0.0, 7.2.1, 9.2.0 and master</p>
<p>There's no grid involved in this operation, just inverse LCC
projection on the RGF93 datum</p>
<p>I also tried to reproduce your issue if the PROJ < 6 IGNF
file is found in the PROJ resource path(s) (non nominal
situation - this file is not needed any more, and will generally
lead to suboptimal results. Its content is included in the
proj.db file), but even with that I get the expected result. So
no idea why you get wrong results<br>
</p>
<p>Even</p>
<p><br>
</p>
<div class="moz-cite-prefix">Le 26/05/2023 à 20:54, Nicolas
Bellaiche a écrit :<br>
</div>
<blockquote>
<div style="font-family:'arial' , 'helvetica' , sans-serif;font-size:12pt;color:#000000">
<div>Hi all,</div>
<div><br>
</div>
<div>I'm migrating my C++ code from PROJ4 to PROJ9 and I meet
a worrying issue with the computation. Some of my regress
tests don't pass so I've tested with cs2cs and gets the same
difference:</div>
<div><br>
</div>
<div>
<p style="color:rgb( 0 , 0 , 0 );font-style:normal;font-weight:normal;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:'menlo'"><span class="Apple-converted-space">PROJ4</span></p>
<p style="color:rgb( 0 , 0 , 0 );font-style:normal;font-weight:normal;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:'menlo'"><span class="Apple-converted-space"> </span>echo<span class="Apple-converted-space"> </span><span class="Object" id="OBJ_PREFIX_DWT157_com_zimbra_phone" style="color:#005a95;text-decoration:none"><a style="color:#005a95;text-decoration:none">652760.73700000</a></span><span class="Apple-converted-space"> </span><span class="Object" id="OBJ_PREFIX_DWT158_com_zimbra_phone" style="color:#005a95;text-decoration:none"><a style="color:#005a95;text-decoration:none">7033791.24300000
43</a></span>.64200000 | cs2cs +init=IGNF:LAMB93 +to
+init=IGNF:RGF93: </p>
<p style="color:rgb( 0 , 0 , 0 );font-style:normal;font-weight:normal;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:'menlo'">4070327.25<span class="Apple-tab-span" style="white-space:pre"> </span><span class="Object" id="OBJ_PREFIX_DWT159_com_zimbra_phone" style="color:#005a95;text-decoration:none"><a style="color:#005a95;text-decoration:none">166078.93
4891298.61</a></span></p>
<p style="color:rgb( 0 , 0 , 0 );font-style:normal;font-weight:normal;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:'menlo';min-height:13px"><br>
</p>
<p style="color:rgb( 0 , 0 , 0 );font-style:normal;font-weight:normal;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:'menlo';min-height:13px">PROJ7 or PROJ9</p>
<p style="color:rgb( 0 , 0 , 0 );font-style:normal;font-weight:normal;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:'menlo'"><span class="Apple-converted-space"> </span>echo<span class="Apple-converted-space"> </span><span class="Object" id="OBJ_PREFIX_DWT160_com_zimbra_phone" style="color:#005a95;text-decoration:none"><a style="color:#005a95;text-decoration:none">652760.73700000</a></span><span class="Apple-converted-space"> </span><span class="Object" id="OBJ_PREFIX_DWT161_com_zimbra_phone" style="color:#005a95;text-decoration:none"><a style="color:#005a95;text-decoration:none">7033791.24300000
43</a></span>.64200000 | cs2cs +init=IGNF:LAMB93 +to
+init=IGNF:RGF93:<span class="Apple-converted-space"> </span></p>
<p style="color:rgb( 0 , 0 , 0 );font-style:normal;font-weight:normal;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:'menlo'">4070355.05<span class="Apple-tab-span" style="white-space:pre"> </span><span class="Object" id="OBJ_PREFIX_DWT162_com_zimbra_phone" style="color:#005a95;text-decoration:none"><a style="color:#005a95;text-decoration:none">166080.07
4891332.24</a></span></p>
<p style="color:rgb( 0 , 0 , 0 );font-style:normal;font-weight:normal;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:'menlo'"><span class="Object" style="color:#005a95;text-decoration:none"><br>
</span></p>
<p style="color:rgb( 0 , 0 , 0 );font-style:normal;font-weight:normal;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:'menlo'"><span class="Object" style="color:#005a95;text-decoration:none"><br>
</span></p>
</div>
<div><br>
</div>
<div>I suspect that PROJ7 and PROJ9 don't read properly the
geoid file but I'm not sure. Someone can help me tracking
and fixing this problem?</div>
<div><br>
Thanks,</div>
<div><br>
</div>
<div>Nicolas Bellaiche</div>
<div>Institut Géographique National France</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>
<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>_______________________________________________<br>PROJ mailing list<br>PROJ@lists.osgeo.org<br>https://lists.osgeo.org/mailman/listinfo/proj<br></div></div></body></html>