Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect height transformation between 3D promoted RGF93 and CH1903+ #2541

Closed
hernando opened this issue Feb 19, 2021 · 0 comments
Closed
Labels

Comments

@hernando
Copy link
Contributor

hernando commented Feb 19, 2021

Example of problem

In cs2cs, converting from RGF93 (EPSG:4171) and CH1903+ (EPSG:4150) goes through ETRS89 (EPSG:4258) according to the output printed with PROJ_DEBUG=2.
If I transform coordinates from ETRS89 to CH1903+ promoted to 3D using projinfo, the height gets converted, but if I transform from RGF93 to CH1903+, the height is not transformed. On the other hand, if I transform from . The height doesn't get converted either if I use RGF93 3D (EPSG:4369)

function wkt2_3d()
{
    projinfo EPSG:$1 --single-line -o WKT2:2019 -q --3d
}

# From RGF93 to CH1903+
$ echo 46 6.6 400 | PROJ_DEBUG=2 cs2cs "$(wkt2_3d 4171)" "$(wkt2_3d 4150)" -d 4
...
Using coordinate operation RGF93 to ETRS89 (1) + Inverse of CH1903+ to ETRS89 (1)
46.0012	6.6008 400.0000

# From RGF93 to CH1903+ pivoting on ETRS89
echo 46 6.6 400 | cs2cs "$(wkt2_3d 4171)" "$(wkt2_3d 4258)" -d 4 | cs2cs "$(wkt2_3d 4258)" "$(wkt2_3d 4150)" -d 4
46.0012	6.6008 347.3557

Problem description

The height should be transformed when converting from RGF93 to CH1903+ with 3D promotion.

Expected Output

$ echo 46 6.6 400 | cs2cs "$(wkt2_3d 4171)" "$(wkt2_3d 4150)" -d 4
46.0012	6.6008 347.3557

Environment Information

  • PROJ 7.2
  • Ubuntu 18.04

Installation method

  • Compiled from source
@hernando hernando added the bug label Feb 19, 2021
rouault added a commit to rouault/PROJ that referenced this issue Mar 5, 2021
@rouault rouault closed this as completed in c6a241f Mar 5, 2021
rouault added a commit that referenced this issue Mar 5, 2021
createOperations(): fix incorrect height transformation between 3D promoted RGF93 and CH1903+ (fixes #2541)
rouault added a commit that referenced this issue Mar 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant