locationtech / proj4j

Java port of the Proj.4 library for coordinate reprojection
Other
181 stars 71 forks source link

Fix inverse datum shifting when coordinate is not exactly on a grid point #79

Closed rhuitl closed 2 years ago

rhuitl commented 2 years ago

This is the same change as the one proposed in https://github.com/dwins/proj4j/pull/3, which never got merged.

It aligns the nad_intr method in this repository with the original one from the C implementation: https://github.com/OSGeo/PROJ/blob/4.9/src/nad_intr.c#L54.

Further confirmation that this code is indeed missing: the Proj4JS implementation does this similarly: https://github.com/proj4js/proj4js/blob/master/lib/datum_transform.js#L187.

rhuitl commented 2 years ago

Hi @pomadchin, thank you for the prompt reply. I signed the ECA!