[PROJ] Unexpected conversion behaviour.

Chris Crook ccrook at linz.govt.nz
Thu Dec 19 16:16:06 PST 2024


UNCLASSIFIED

Hi PROJ people

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.

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?

$ test_nzgd1949.sh
+ cs2cs
Rel. 8.2.1, January 1st, 2022
usage: cs2cs [-dDeEfIlrstvwW [args]]
              [[--area name_or_code] | [--bbox west_long,south_lat,east_long,north_lat]]
              [--authority {name}] [--accuracy {accuracy}] [--no-ballpark]
              [+opt[=arg] ...] [+to +opt[=arg] ...] [file ...]
+ echo -42 173
+ cs2cs EPSG:4167 EPSG:4272 -d 8
-42.00171693    172.99984072 0.00000000
+ echo -42 -187
+ cs2cs EPSG:4167 EPSG:4272 -d 8
-42.00169999    172.99986158 0.00000000

Thanks


Chris Crook  (he/him<https://www.publicservice.govt.nz/our-work/diversity-and-inclusion/pronoun-use-in-email-signatures/>)
Geodetic Scientist

Location Information



ccrook at linz.govt.nz<mailto:ccrook at linz.govt.nz> | DDI 04 460 0567 | MOB 021 027 44211





[cid:image001.png at 01D622F4.BA10B4F0]<https://www.linz.govt.nz/>

Wellington Office, Level 7, Radio New Zealand House, 155 The Terrace
PO Box 5501, Wellington 6145, New Zealand

www.linz.govt.nz<http://www.linz.govt.nz/> | data.linz.govt.nz<http://www.data.linz.govt.nz/>



[cid:image002.png at 01D6342C.DB5A4560]<https://www.facebook.com/landinformationnz/>        [cid:image004.png at 01D6342C.DB5A4560] <https://www.linkedin.com/company/land-information-new-zealand/>          [cid:image006.png at 01D6342C.DB5A4560] <https://twitter.com/LandInfoNZ>          [cid:image011.png at 01D6342C.DB5A4560] <https://www.youtube.com/user/linzvideoofficial>




________________________________

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 customersupport at linz.govt.nz) 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.


UNCLASSIFIED
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/proj/attachments/20241220/b2dbbef7/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Outlook-cid_image0.png
Type: image/png
Size: 7275 bytes
Desc: Outlook-cid_image0.png
URL: <http://lists.osgeo.org/pipermail/proj/attachments/20241220/b2dbbef7/attachment-0005.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Outlook-cid_image0.png
Type: image/png
Size: 809 bytes
Desc: Outlook-cid_image0.png
URL: <http://lists.osgeo.org/pipermail/proj/attachments/20241220/b2dbbef7/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Outlook-cid_image0.png
Type: image/png
Size: 856 bytes
Desc: Outlook-cid_image0.png
URL: <http://lists.osgeo.org/pipermail/proj/attachments/20241220/b2dbbef7/attachment-0007.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Outlook-cid_image0.png
Type: image/png
Size: 700 bytes
Desc: Outlook-cid_image0.png
URL: <http://lists.osgeo.org/pipermail/proj/attachments/20241220/b2dbbef7/attachment-0008.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Outlook-cid_image0.png
Type: image/png
Size: 1064 bytes
Desc: Outlook-cid_image0.png
URL: <http://lists.osgeo.org/pipermail/proj/attachments/20241220/b2dbbef7/attachment-0009.png>


More information about the PROJ mailing list