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

Switch from ellipsoidal to 2d cartesian distances #89

Conversation

gacarrillor
Copy link
Contributor

@gacarrillor gacarrillor commented May 23, 2024

Because that's what QGIS elevation profile tool supports.

By doing so, we ensure users won't get displaced profile graphs (too much difference between ellipsoidal and cartesian distances) nor displaced exported features (using 3d cartesian distances, exported features won't match in the graph and will be displaced with respect to 2d distances calculated by the elevation profile tool).

image

Fix #86
Fix #87


For the record, this is the deviation when using 3d cartesian distances:
Points are exported features (distance/elevation table) from the profile, which have their Z coordinate. The elevation profile tool doesn't take these Z coordinates into account when calculating distances, so features appear displaced with respect to its correspondent 3d cartesian distance given by the Swiss locator calculation. As a result, we use 2d cartesian distances avoiding these displacements.

image

…hat QGIS elevation profile tool supports. By doing so, we ensure users won't get displaced profile graphs (too much difference between ellipsoidal and cartesian distances) not displaced exported features (using 3d cartesian distances, exported features won't match in the graph and will be displaced with respect to 2d distances calculated by the elevation profile tool)
@gacarrillor gacarrillor changed the title Switch from ellipsoidal to 2d cartesian coordinates Switch from ellipsoidal to 2d cartesian distances May 23, 2024
@gacarrillor gacarrillor merged commit 9e11e12 into opengisch:master May 27, 2024
2 checks passed
@gacarrillor gacarrillor deleted the switch_from_ellipsoidal_to_cartesian_distances branch May 27, 2024 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants