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

Support 3D geometries #2534

Open
kevinschaich opened this issue Nov 9, 2023 · 3 comments
Open

Support 3D geometries #2534

kevinschaich opened this issue Nov 9, 2023 · 3 comments

Comments

@kevinschaich
Copy link

Is it possible to support 3D geometries with an optional z / altitude / elevation coordinate?

This is now supported by the GeoJSON spec.

@smallsaucepan smallsaucepan changed the title [Feature Request] 3D geometries Support 3D geometries Nov 10, 2023
@smallsaucepan
Copy link
Member

Thanks for raising this @kevinschaich. To what extent are you requesting support? Let's say the spectrum runs from "let people provide z coords but ignore them for calculations" all the way up to "fully incorporate altitude variations in to all functionality".

Do you have a particular use case? Or are you getting errors when supplying a z coord?

@pvy
Copy link

pvy commented Nov 14, 2023

E.g. bezierSpline ignores the z coordinate and returns two-dimensional coordinates.

Other 2D functions could project points onto a plane and work inside it.

@kevinschaich
Copy link
Author

kevinschaich commented Nov 14, 2023

Ignore z coordinate would be a great first step.

I imagine things get much more complicated if you're doing the actual operations – the GeoJSON spec says:

An OPTIONAL third-position element SHALL be the height in meters above or below the WGS 84 reference ellipsoid.

so that would mean the three coordinates are not in the same units ([lon <WGS84 decimal degrees>, lat <WGS84 decimal degrees>, alt <meters>]).

Do all the functions share a common parser step at the beginning? If so, would be easy to just strip off the third coordinate and then pass that in.

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

No branches or pull requests

3 participants