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

GeoJson LineString coordinates should accept altitude/elevation/height #10174

Open
zevero opened this issue Dec 9, 2020 · 25 comments
Open

GeoJson LineString coordinates should accept altitude/elevation/height #10174

zevero opened this issue Dec 9, 2020 · 25 comments

Comments

@zevero
Copy link

zevero commented Dec 9, 2020

Motivation

Mapbox v2.0.0 has such cool new 3d Terrain. I was all thrilled and tried it out on my paragliding page for displaying flights. Using a geoJson source, LineString coordinates (lat, lng) do not include altitude/elevation/height. So the result in my type: 'line' layer is quite unusable.
image

Design Alternatives

  1. Include altitude as a third field in LineString coordinates
  2. Offer another possibility for showing 3d track information

Design

Design 1 should be quite easy to implement, if extending the standard is a possibility
Design 2 would require more code changes, but would offer more functionality (individual color and individual width for each line segment, realtime updates, ...)

In both ways, there will be more fun with 3d with 3d lines in mapbpx gl js v2.0.0

EDIT: Related to #3993

@karimnaaji
Copy link
Contributor

Hi @zevero , thanks for the feedback. Elevated polylines is a feature we have on our roadmap. We would have to eventually allow polylines to be excluded from being draped (as this is currently the default behavior when used with terrain).

@joedjc
Copy link

joedjc commented Dec 10, 2020

Will it also be possible to encode altitude in a similar way in MVTs?

@eidge
Copy link

eidge commented Jan 1, 2021

Just a plus one to the above. Similar use-case but for gliders, would love to replace the map in Glana with Mapbox and this would be the perfect excuse!

@bentfc
Copy link

bentfc commented Jan 29, 2021

Hi, that's a good news!! Do you have any idea of a release date for this feature? At least a delay?

@zevero
Copy link
Author

zevero commented Mar 10, 2021

Please - if this will get implemented - do not forget optional rgba color and thickness control for each segment (or between keyframes)

If this LineString could be animated in time (showing icon, title, progressing line. curtain to the ground, deleting/fading its tail) the better.
Just wishing, but maybe all these things could be part of some LineTrack definition ... some day in the future...

@arcsump
Copy link

arcsump commented Mar 24, 2021

They had difficulty implementing 3D in points so I would not count on it.

Hundreds of issues prior, their answer is "it is difficult to implement"

@maximilianchristl
Copy link

Is there any news or timeframe for this feature? We are currently working on an aviation / paragliding / freeflight app and are comparing different map providers. Mapbox would be our favourite, but misses the 3d path and point functionality, which would be necessary to display flight data. So this is a showstopper for the moment :(

@txaiwieser
Copy link

Did anyone get an alternative to draw lines that differ from the terrain altitude?

@Walkeezy
Copy link

Any update on this? Would be a really cool feature!

@dpman421
Copy link

dpman421 commented Feb 9, 2022

We have a use case of adding elevation to transmission power lines based on voltage level, so this would be really nice to have. T

@hughes
Copy link

hughes commented Sep 13, 2022

Is this still on the development roadmap?

@joedjc
Copy link

joedjc commented Sep 14, 2022

I hope it is still planned, and we can have Z values for every geometry type - similar to how features are draped on terrain except we can customise and specify how far off the surface features should be. I'm sure it would open a lot of possibilities.

@eeegs
Copy link

eeegs commented Oct 16, 2022

My plus one please. Good feature to just see the terrain a line passes through between two elevated points.

@anders86755
Copy link

It will be a very cool feature. I've been waiting for this feature for a long time. Any update on this?

@JonPichel
Copy link

Any updates on this? I'm eager to switch to Mapbox from ArcGIS for a Drone GCS application but 3D is absolutely essential. If this gets done it would open so many possibilities for Mapbox.

@PorridgeBear
Copy link

+1

In KML this is done with a 3rd altitude value on the LineString array:

          <LineString id="2">
              <altitudeMode>relativeToGround</altitudeMode>
              <coordinates>
              -0.2536228067690857,51.433380901664165,2.41
              -0.25374175204266086,51.43333070652216,2.41
              </coordinates>
          </LineString>

@flymypi
Copy link

flymypi commented Sep 6, 2023

@karimnaaji Is this still planned?

@andrew-hossack
Copy link

Not planned, sad to see this feature being ignored.

@PorridgeBear
Copy link

PorridgeBear commented Apr 1, 2024

I note some others' motivations for wanting this relate to drones as does mine - a new industry that is only 2nd to AI in growth projections - to be a 55 billion dollar industry by 2030.

I would suggest this thread represents today a small bleeding edge before more demand inline with the industry predictions.

Selfishly and pragmatically I'd get ahead of this 😜

@john-work-ios
Copy link

Up!

@veech
Copy link

veech commented Aug 28, 2024

We're using ArcGIS JS only because it supports this functionality. I am eager to swap over to Mapbox once this feature becomes available!

@astojilj
Copy link
Contributor

astojilj commented Aug 28, 2024

Work's ongoing on enabling mean-sea-level elevation. At the moment, it is possible to specify the height (z offset from ground) of individual line vertices using the geojson array property and expression that allows lookup into the array based on line progress ("lineMetrics" for the source needs to be set). See the video and explanation at mapbox/mapbox-maps-ios#360 (comment)

E.g. the linked example sets it as:

        "line-z-offset": [
          "at",
          ["floor", ["*", [ "line-progress" ], 6.9]],
          ["get", "elevation"]
        ]

@hughes
Copy link

hughes commented Aug 29, 2024

I hope that mean-sea-level or ground-relative altitudes are not the only options. For large-scale lines (eg. orbital paths) or raw GPS data, ellipsoidal height is helpful.

@bfercher
Copy link

Thank you so much @astojilj for your work. looking forward to the release of this :-)

@astojilj
Copy link
Contributor

An update was shared at #3993 (comment)

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