interpolate elevation in all computations #2783
Replies: 3 comments
-
Hey Paul! Yep, as it currently stands, Turf doesn't support the elevation parameter in GeoJSON in any meaningful way. This was a combination of two factors:
Luckily, #2 is no longer the case! The IETF draft in section 4 specifies the meaning of altitude: https://tools.ietf.org/html/draft-ietf-geojson-03#section-4
So that's cleared up. Happy to accept any PRs that interpolate/include elevation when it's present! |
Beta Was this translation helpful? Give feedback.
-
👍 Support having elevation in all computations, reference #628. |
Beta Was this translation helpful? Give feedback.
-
I too am interested in the addition of the altitude element and this becoming significant in the calculation of distance. To that end, I did find the following useful response along the same lines, which demonstrates how to add the altitude distance calculation: |
Beta Was this translation helpful? Give feedback.
-
According to the geojson spec, positions can include a 3rd number to represent elevation. It looks like turf does not support elevation in any way. It would be awesome if turf could (optionally) interpolate elevation in all computatations. Is this something other people are interested in? I'd be willing to add support assuming someone is willing to accept my pull requests 😃
Beta Was this translation helpful? Give feedback.
All reactions