-
Notifications
You must be signed in to change notification settings - Fork 832
Bad transformation using a derived vertical CRS with base vertical that has a geoid #3407
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
Comments
…edVerticalCRS as equivalent This cause incorrect result when transforming from/to a DerivedVerticalCRS or a CompoundCRS made of a DerivedVerticalCRS With that fix: ``` $ echo 46.9524055555556 7.43958333333333 400 | cs2cs -d 12 EPSG:4979 "$(cat test.wkt)" 46.953728423809 7.440534369109 361.014348853429 ``` Fixes OSGeo#3407
Thanks for the quick fix. Now I have a follow up, let me know if I should write a separate ticket for that. The problem I'm facing now is that in fact, what I want to do is to declare a custom vertical for defining an offset on the ellipsoidal height, using as ellipsoid that one from the horizontal part of the compound.
The result is very bad because it has ballpark transformations left and right and I get Projinfo shows this pipeline as the first alternative:
But I would like to see something equivalent to this:
Is it even possible express this in a WKT2 string? Note: The "Ellipsoid" datum has been taken from the output of projinfo with |
you need to create a DerivedGeographic 3D CRS. Cf #3411 for what you want and the fix. |
Great! That's exactly what I was looking for. In the beginning I tried something similar with a BOUNDCRS, but after reading the WKT2 standard, I realized that a vertical offset is not a valid transformation here.
I'm happy to contribute something, but I can't commit to do it in a short time frame. The experiments I'm making are all around vertical transformations in situations where there's no geoid model grid available. I could describe use cases and include some C++ snippets with WKT2 strings. |
Uh oh!
There was an error while loading. Please reload this page.
If I try to declare a vertical CRS as a derived on top of a vertical for which a geoid is available, the transformation from ellipsoidal heights to my vertical CRS will include the geoid grid, but ignore the deriving conversion.
Problem description
If I apply a transformation like this:
I get
46.953728425886 7.440534370598 351.014348853429
, but I was expecting46.953728425886 7.440534370598 361.014348853429
projinfo
show these 2 candidates transformations as the first ones:Expected Output
I would expect the height to be higher according to the vertical offset and
projinfo
listing the 2nd operation as the first one.Environment Information
Installation method
Compiled from source.
The text was updated successfully, but these errors were encountered: