-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
GDAL 3.0.1: coordinate transformation with vertical shift #1836
Comments
Regarding if horizontal transformation then vertical or vertical then horizontal must be applied, I haven't found yet a definitive answer on this. For that particular case thoug, EPSG:4979 to EPSG:2162+3855, applying the vertical transformation first using egm08_25.gtx grid makes sense since this grid is to transform between EGM2008 height and WGS 84 ellipsoidal height, and I believe that the grid assumes horizontal coordinates in WGS 84, so I think the order used here, vertical shift then horizontal shift, makes sense.
Here the main difference between GDAL 2.4 (-63.4m) and GDAL 3.0 (-32.7m) mostly comes from the fact that PROJ4/5 transformation was also applying a transformation on Z when doing conversion between the WGS84 and Sierra Leone 1968 datum going through geocentric coordinates, and during PROJ 6 development, we deemed that this transformation didn't make sense when the CRS was a compound made of a horizontal + vertical CRS. So GDAL 3 + PROJ6 result is certainly closer to the "truth" to GDAL 2.x + PROJ4/5 So all in all I think GDAL 3 results are OK |
@rouault Thank you for your answer! Some more tests for GDAL 3 vertical shift:
I understand that WGS84 and ETRS89 are almost the same and i expect, that vertical shift will be applied to this transformation but it's not :
So, i tried to replace EPSG:4979(WGS84(3D)) with EPSG:4937(ETRS89(3D)) and it worked fine:
Also i tried to replace target SRS with proj4 string, that i got from
And this way it work fine for both: EPSG:4979 and EPSG:4973. Is it bug or not? Thank you in advance for your answer! |
Regarding EPSG:4979 to EPSG:3040+5732, you've exactly hit the work I've done this week in OSGeo/PROJ#1608 With that work applied, then it works out of the box:
|
That sounds great! Thank you! I will wait for new version |
Closing this as it is only PROJ business. |
Expected behavior and actual behavior.
Hello, i'm trying to understand how i can properly work with geoids in GDAL 3. I have a next transformation:
From EPSG:4979(WGS84 3D) transform to EPSG2162(Sierra Leone 1968 / UTM zone 29N) with vertical shift in accordance with EPSG:3855(EGM2008 heigh). I expected, that first, coordinates will be projected from (WGS84) to (Sierra Leone 1968 / UTM zone 29N) and then vertical shift will be applied.
It woks this way in GDAL 2.4.0 with PROJ 5:
It looks like vertical shift was applied to the coordinates obtained after projection.
But in GDAL 3 i have next results:
Here, if i understand correctly, first was applied vertical shift, then coordinates was projected. It described in piplene:
WGS 84 to EGM2008 height (1) + Inverse of Sierra Leone 1968 to WGS 84 (1) + UTM zone 29N
I found out that GDAL 3 always applies vertical shift to source datum, not to the target datum.
Can you explain please is it correct to use such transformation? What result is more correct?
Operating system
macOS Mojave 10.14.6
GDAL version and provenance
GDAL 3.0.1, PROJ 6.2.0
The text was updated successfully, but these errors were encountered: