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

Swiss profiles return ellipsoidal distances, QGIS profiles use cartesian ones #86

Closed
gacarrillor opened this issue May 22, 2024 · 1 comment · Fixed by #89
Closed

Swiss profiles return ellipsoidal distances, QGIS profiles use cartesian ones #86

gacarrillor opened this issue May 22, 2024 · 1 comment · Fixed by #89

Comments

@gacarrillor
Copy link
Contributor

gacarrillor commented May 22, 2024

For reference, see QGIS issue and another related plugin issue.

This is the result of a Swiss profile when using a QGIS project in EPSG:3837 (I'm measuring the profile line on the main QGIS canvas in both ellipsoidal and cartesian modes):

swiss_profile_on_3857

Approximately the same profile when using a QGIS project in EPSG:2056 (which is the EPSG requested by the Profile API):

Measurements for EPSG:2056, in both ellipsoidal and cartesian modes are almost the same, the difference is a matter of millimeters.

image

@gacarrillor
Copy link
Contributor Author

A possible solution to avoid tweaking QGIS code would be to calculate our own (cartesian) distances and only use heights from the profile API (ignoring the distances it returns). This depends on the QGIS-CH requirements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant