<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi Chris,</p>
<p><br>
</p>
<p>I see in pj_get_suggested_operation() a normalizeLongitude()
longitude that renormalize longitudes to [-180,180]. Perhaps this
is related to how you've defined the area of use of your
transformation? It should be something like
min_lat,longitude_a_bit_below_180,max_lat,longitude_a_bit_above_minus_180
for an area of use intersecting the antimeridian.<br>
</p>
<p><br>
</p>
<p>Even<br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">Le 20/12/2024 à 01:16, Chris Crook via
PROJ a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:SY4PR01MB655374FC4AC91D9E34A0C778EC072@SY4PR01MB6553.ausprd01.prod.outlook.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css" style="display:none;">P {margin-top:0;margin-bottom:0;}</style>
<p
style="font-family:Calibri;font-size:12pt;color:#000000;margin:5pt;font-style:normal;font-weight:normal;text-decoration:none;"
align="Center">
UNCLASSIFIED<br>
</p>
<br>
<div>
<div class="elementToProof"
style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi PROJ people</div>
<div class="elementToProof"
style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof"
style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I am looking at a conversion (EPSG:4176->EPSG:4272) which
is lat/lon->lat/lon via a distortion grid. Unexpectedly I
get a different answer by adding 360 degrees to the input
coordinate. </div>
<div class="elementToProof"
style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof"
style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
It looks like this possibility is not accounted for when
testing whether the grid is applicable, so it falls back to
the less accurate option. Is that correct? And if so would
it make sense to allow longitude wrapping when evaluating
conversion options?</div>
<div class="elementToProof"
style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof"
style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
$ test_nzgd1949.sh</div>
<div
style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
+ cs2cs</div>
<div
style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Rel. 8.2.1, January 1st, 2022</div>
<div
style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
usage: cs2cs [-dDeEfIlrstvwW [args]]</div>
<div
style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
[[--area name_or_code] | [--bbox
west_long,south_lat,east_long,north_lat]]</div>
<div
style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
[--authority {name}] [--accuracy {accuracy}]
[--no-ballpark]</div>
<div
style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
[+opt[=arg] ...] [+to +opt[=arg] ...] [file ...]</div>
<div
style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
+ echo -42 173</div>
<div
style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
+ cs2cs EPSG:4167 EPSG:4272 -d 8</div>
<div
style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
-42.00171693 172.99984072 0.00000000</div>
<div
style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
+ echo -42 -187</div>
<div
style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
+ cs2cs EPSG:4167 EPSG:4272 -d 8</div>
<div class="elementToProof"
style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
-42.00169999 172.99986158 0.00000000</div>
<div class="elementToProof"
style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof"
style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thanks</div>
<div
style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="Signature">
<p style="margin: 0cm 0cm 0.0001pt;"><span
style="font-family: "Segoe UI", sans-serif; font-size: 12pt; color: rgb(0, 113, 152); background-color: rgb(255, 255, 255);"><b>Chris
Crook
</b></span><span
style="font-family: "Segoe UI", sans-serif, serif, EmojiFont; font-size: 12pt; color: rgb(0, 113, 152); background-color: rgb(255, 255, 255);"><b> (</b></span><span
style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 113, 152);"><b><a
href="https://www.publicservice.govt.nz/our-work/diversity-and-inclusion/pronoun-use-in-email-signatures/"
id="OWA8369df18-0ac7-78aa-4eb7-bb62d1084889"
class="OWAAutoLink"
title="https://www.publicservice.govt.nz/our-work/diversity-and-inclusion/pronoun-use-in-email-signatures/"
style="color: rgb(0, 113, 152); margin-top: 0px; margin-bottom: 0px;"
moz-do-not-send="true">he/him</a></b></span><span
style="font-family: "Segoe UI", sans-serif, serif, EmojiFont; font-size: 12pt; color: rgb(0, 113, 152); background-color: rgb(255, 255, 255);"><b>)</b></span><span
style="font-family: "Segoe UI", sans-serif; font-size: 10pt; color: rgb(55, 173, 71); background-color: rgb(255, 255, 255);"><br>
</span><span
style="font-family: "Segoe UI", sans-serif; font-size: 10pt; color: rgb(65, 64, 66); background-color: rgb(255, 255, 255);">Geodetic
Scientist</span></p>
<p
style="text-align: left; background-color: rgb(255, 255, 255); margin: 0cm 0cm 0.0001pt; font-family: Calibri, sans-serif; font-size: 11pt; color: rgb(32, 31, 30);">
<span
style="font-family: "Segoe UI", sans-serif; font-size: 10pt; color: rgb(65, 64, 66);">Location
Information</span></p>
<p
style="text-align: left; background-color: rgb(255, 255, 255); margin: 0cm 0cm 0.0001pt; font-family: Calibri, sans-serif; font-size: 11pt; color: rgb(32, 31, 30);">
<span
style="font-family: "Segoe UI", sans-serif; font-size: 4pt; color: rgb(65, 64, 66);"> </span></p>
<p
style="text-align: left; background-color: rgb(255, 255, 255); margin: 0cm 0cm 0.0001pt; font-family: Calibri, sans-serif; font-size: 11pt; color: rgb(32, 31, 30);">
<span
style="font-family: "Segoe UI", sans-serif; font-size: 9pt; color: blue;"><a
href="mailto:ccrook@linz.govt.nz" target="_blank"
id="OWAd031f3b5-b3bf-504b-d472-01301b59cc74"
class="OWAAutoLink moz-txt-link-freetext"
rel="noopener noreferrer"
style="color: blue; margin: 0px;" moz-do-not-send="true">ccrook@linz.govt.nz</a></span><span
style="font-family: "Segoe UI", sans-serif; font-size: 9pt; color: rgb(65, 64, 66);"> |
<b>DDI </b>04 460 0567 | <b>MOB</b> 021 027 44211</span></p>
<p
style="text-align: left; background-color: rgb(255, 255, 255); margin: 0cm 0cm 0.0001pt; font-family: Calibri, sans-serif; font-size: 11pt; color: rgb(32, 31, 30);">
<span
style="font-family: "Segoe UI", sans-serif; font-size: 6pt; color: rgb(65, 64, 66);"> </span></p>
<p
style="text-align: left; background-color: rgb(255, 255, 255); margin: 0cm 0cm 0.0001pt; font-family: Calibri, sans-serif; font-size: 11pt; color: rgb(32, 31, 30);">
<span
style="font-family: "Segoe UI", sans-serif; font-size: 4pt; color: rgb(65, 64, 66);"> </span></p>
<table
style="text-align: left; background-color: rgb(255, 255, 255); color: rgb(32, 31, 30); box-sizing: border-box; border-collapse: collapse; border-spacing: 0px;">
<tbody>
<tr>
<td
style="width: 120.2pt; height: 1.2pt; text-align: left; border-top: 1pt solid windowtext; padding: 5.4pt 5.4pt 0cm 0cm;">
<p
style="text-align: left; margin: 0cm 0cm 0.0001pt; font-family: Calibri, sans-serif; font-size: 11pt;">
<span
style="font-family: "Segoe UI", sans-serif; font-size: 8pt; color: blue;"><u><a
href="https://www.linz.govt.nz/"
target="_blank"
id="OWA3f158f39-aa06-a96c-1ee7-99f59d201287"
class="OWAAutoLink" rel="noopener noreferrer"
style="color: blue; margin: 0px;"
moz-do-not-send="true"><img
alt="cid:image001.png@01D622F4.BA10B4F0"
style="width: 146px; height: 38px; margin: 0px;"
data-outlook-trace="F:1|T:1"
src="cid:part1.DlKPYRoN.1kbyRm1g@spatialys.com" class="" width="146"
height="38"></a></u></span></p>
</td>
<td
style="width: 283.8pt; height: 1.2pt; text-align: left; border-top: 1pt solid windowtext; padding: 5.4pt 5.4pt 0cm 0cm;">
<p
style="text-align: left; margin: 0cm 0cm 0.0001pt; font-family: Calibri, sans-serif; font-size: 11pt;">
<span
style="font-family: "Segoe UI", sans-serif; font-size: 9pt; color: rgb(65, 64, 66);">Wellington
Office, Level 7, Radio New Zealand House, 155 The
Terrace<br>
PO Box 5501, Wellington 6145, New Zealand</span></p>
<p
style="text-align: left; margin: 0cm 0cm 0.0001pt; font-family: Calibri, sans-serif; font-size: 11pt;">
<span
style="font-family: "Segoe UI", sans-serif; font-size: 9pt; color: rgb(0, 113, 152);"><u><a
href="http://www.linz.govt.nz/"
target="_blank"
id="OWAd614e46d-c30e-78de-3b9b-b9302bba245e"
class="OWAAutoLink"
title="http://www.linz.govt.nz/"
rel="noopener noreferrer"
style="color: rgb(0, 113, 152); margin: 0px;"
moz-do-not-send="true">www.linz.govt.nz</a></u></span><span
style="font-family: "Segoe UI", sans-serif; font-size: 9pt; color: rgb(65, 64, 66);"> |
</span><span
style="font-family: "Segoe UI", sans-serif; font-size: 9pt; color: rgb(0, 113, 152);"><u><a
href="http://www.data.linz.govt.nz/"
target="_blank"
id="OWA27b2d1d1-e458-2bf0-e923-7745d7ac21c9"
class="OWAAutoLink"
title="http://www.data.linz.govt.nz/"
rel="noopener noreferrer"
style="color: rgb(0, 113, 152); margin: 0px;"
moz-do-not-send="true">data.linz.govt.nz</a></u></span></p>
<p
style="text-align: left; margin: 0cm 0cm 0.0001pt; font-family: Calibri, sans-serif; font-size: 11pt;">
<span
style="font-size: 6pt; color: rgb(65, 64, 66);"> </span></p>
<p
style="text-align: left; line-height: 15.4px; margin: 0cm 0cm 8pt; font-family: Calibri, sans-serif; font-size: 11pt;">
<span
style="font-family: "Segoe UI", sans-serif; color: rgb(5, 99, 193);"><u><a
href="https://www.facebook.com/landinformationnz/" target="_blank"
id="OWA899c63ee-e48f-5d15-24f1-c30b839488b6"
class="OWAAutoLink" rel="noopener noreferrer"
style="color: rgb(5, 99, 193); margin: 0px;"
moz-do-not-send="true"><img
alt="cid:image002.png@01D6342C.DB5A4560"
style="width: 26px; height: 26px; margin: 0px;"
data-outlook-trace="F:1|T:1"
src="cid:part2.H73FMoPc.fCs4a0x0@spatialys.com" class="" width="26"
height="26"></a></u></span><span
style="font-family: "Segoe UI", sans-serif; color: rgb(65, 64, 66);">
</span><span
style="font-family: "Segoe UI", sans-serif; color: rgb(5, 99, 193);"><u><a
href="https://www.linkedin.com/company/land-information-new-zealand/"
target="_blank"
id="OWA121de6f9-504f-a8ee-b86e-35533f178c16"
class="OWAAutoLink" rel="noopener noreferrer"
style="color: rgb(5, 99, 193); margin: 0px;"
moz-do-not-send="true"><img
alt="cid:image004.png@01D6342C.DB5A4560"
style="width: 26px; height: 26px; margin: 0px;"
data-outlook-trace="F:1|T:1"
src="cid:part3.0I6O2qcz.ohp9tlgA@spatialys.com" class="" width="26"
height="26"></a></u></span><span
style="font-family: "Segoe UI", sans-serif; color: rgb(65, 64, 66);">
</span><span
style="font-family: "Segoe UI", sans-serif; color: rgb(5, 99, 193);"><u><a
href="https://twitter.com/LandInfoNZ"
target="_blank"
id="OWA3fdb7b58-5a17-2680-ee17-8cf92ef31a50"
class="OWAAutoLink" rel="noopener noreferrer"
style="color: rgb(5, 99, 193); margin: 0px;"
moz-do-not-send="true"><img
alt="cid:image006.png@01D6342C.DB5A4560"
style="width: 25px; height: 25px; margin: 0px;"
data-outlook-trace="F:1|T:1"
src="cid:part4.5OEdYuvj.lOK4WgLr@spatialys.com" class="" width="25"
height="25"></a></u></span><span
style="font-family: "Segoe UI", sans-serif; color: rgb(65, 64, 66);">
</span><span
style="font-family: "Segoe UI", sans-serif; color: rgb(5, 99, 193);"><u><a
href="https://www.youtube.com/user/linzvideoofficial" target="_blank"
id="OWA82a057b1-a738-a37b-4bb3-893f76802fe5"
class="OWAAutoLink" rel="noopener noreferrer"
style="color: rgb(5, 99, 193); margin: 0px;"
moz-do-not-send="true"><img
alt="cid:image011.png@01D6342C.DB5A4560"
style="width: 26px; height: 26px; margin: 0px;"
data-outlook-trace="F:1|T:1"
src="cid:part5.9d8q0KPG.3MnGXxf1@spatialys.com" class="" width="26"
height="26"></a></u></span></p>
<p
style="text-align: left; margin: 0cm 0cm 0.0001pt; font-family: Calibri, sans-serif; font-size: 11pt;">
<span
style="font-family: "Segoe UI", sans-serif; font-size: 9pt; color: rgb(65, 64, 66);"> </span></p>
</td>
</tr>
</tbody>
</table>
<br>
</div>
<br>
<hr>
<font size="2" face="Verdana" color="Black"><br>
This message contains information, which may be in confidence
and may be subject to legal privilege. If you are not the
intended recipient, you must not peruse, use, disseminate,
distribute or copy this message. If you have received this
message in error, please notify us immediately (Phone 0800 665
463 or <a class="moz-txt-link-abbreviated" href="mailto:customersupport@linz.govt.nz">customersupport@linz.govt.nz</a>) and destroy the original
message. LINZ accepts no responsibility for changes to this
email, or for any attachments, after its transmission from
LINZ. Thank You.<br>
</font></div>
<br>
<p
style="font-family:Calibri;font-size:12pt;color:#000000;margin:5pt;font-style:normal;font-weight:normal;text-decoration:none;"
align="Center">
UNCLASSIFIED<br>
</p>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
PROJ mailing list
<a class="moz-txt-link-abbreviated" href="mailto:PROJ@lists.osgeo.org">PROJ@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/proj">https://lists.osgeo.org/mailman/listinfo/proj</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.
Butcher of all kinds of standards, open or closed formats. At the end, this is just about bytes.
Mood of the day: "Bien entendu, on peut sauter sur sa chaise comme un cabri en disant : les standards ! les standards ! les standards ! Mais ça n’aboutit à rien et ça ne signifie rien." ~ dixit De Gaulle</pre>
</body>
</html>