-
Notifications
You must be signed in to change notification settings - Fork 803
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
Different (~100m) results from transforming WGS84 -> Belgian lambert 72 depending on definition used #4170
Comments
Contrary to what its name suggests, epsg.io is not an official reference, and in particular, for this use case, it got the values of the TOWGS84 clause wrong. You'd be better using the WKT strings from https://spatialreference.org/ which are derived from PROJ. |
Thanks @rouault for your incredibly swift reply. They really seem to think they're an official reference
I'll try to get them to update these values so others don't fall into the trap of believing them and assuming their details are correct. |
@piemonkey there are already various issues about it (@rouault commented on maptiler/epsg.io#194, and maptiler/epsg.io#190 seems another duplicate) Also another issue of Even about it being misleading people in believing the site is a reference: maptiler/epsg.io#171 |
…KT1 CRS import This adds an heuristics to detect wrong sign in rotation terms of TOWGS84 clause wrongly imported from a Coordinate Frame rotation, such as the ones currently emitted by epsg dot io. Refs OSGeo#4170
…KT1 CRS import This adds an heuristics to detect, aud autocorrect, wrong sign in rotation terms of TOWGS84 clause wrongly imported from a Coordinate Frame rotation, such as the ones currently emitted by epsg dot io. Refs OSGeo#4170
Glad to see people have already tried to correct this. I hope something eventually gets through... As for spatialreference.org, it seems they don't include the TOWGS84 parameters at all. Similar to |
We are going to fix this bug in EPSG.io. Thank you for spotting it! Keen to discuss what other actions can be taken to make the experience better - to reduce the pains on OSGEO/PROJ side @rouault - a meetup during FOSS4GE? |
yes, we can try to find a moment to discuss |
I've used the bug report template as this at the very least is unexpected behaviour for an unskilled user, if not an actual bug.
When digging into differences of ~100m between transformations from WGS84 to Belgian Lambert 72 given by different tools, I've spotted that the result given by
cs2cs
for these transformations depends on which definition of the Belgian Lambert 72 CRS is used.Example of problem
Different Belgian Lambert 72 coordinates obtained when using the EPSG code or the OGC WKT2 definition compared to the OGC WKT definition.
Problem description
This seems to be related to the inclusion of the
TOWGS84
parameters in the WKT definition (which technically makes it a description of a transform rather than a CRS?) as this is reflected in the proj strings generated byprojinfo
for the different definitions (which are identical except for the inclusion of a+towgs84=-106.8686,52.2978,-103.7239,-0.3366,0.457,-1.8422,-1.2747
term when passing the WKT definition to projinfo). I have no idea why this isn't being accounted for by the transform that proj seems to match for the operation, which is as far as I can tell, the correct one.Expected Output
I would expect that the output of the transformation to match between different definition formats, to within the stated accuracy of the CRSs used.
Environment Information
proj 9.4.1
)Installation method
The text was updated successfully, but these errors were encountered: