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

Display 3D GeoJSON data in HsCesium #4757

Closed
jmacura opened this issue Mar 1, 2024 · 2 comments
Closed

Display 3D GeoJSON data in HsCesium #4757

jmacura opened this issue Mar 1, 2024 · 2 comments
Assignees
Milestone

Comments

@jmacura
Copy link
Collaborator

jmacura commented Mar 1, 2024

The GeoJSON format is not very suitable for storing data in 3D.
The standard somewhat allows to store 2.5D data in a form [lon, lat, elevation] or [lon, lat, altitude]. This is ambiguous as altitude ("above ground") and elevation ("above mean sea level") are different concepts. The GeoJSON Format. We can place the point/polygon/line to that height, but we must pick one of the two options, there is not guesstimate to differentiate elevation from altitude. From a quick googling, it seems to me that the "elevation" is somewhat more common as the "z" coordinate, e.g. emphasized by tmcw.
Additionally, the information about e.g. object's height can be stored in any property (e.g. "height"), which can be used to extrude the polygon/line into that height.

It is possible to do some fancy stuff with geometries in Cesium, like in this example: https://sandcastle.cesium.com/index.html?src=Polygon.html but it is not straightforward how to do it with a data in GeoJSON format...
It is about how to access/create PolygonGraphics from the GeoJsonDataSource before/while the entities are created.

@jmacura jmacura self-assigned this Mar 1, 2024
@fzadrazil fzadrazil added this to the 14.0 milestone Mar 4, 2024
@jmacura
Copy link
Collaborator Author

jmacura commented Mar 6, 2024

In cesium-fixes-14 branch, it was proven as feasible:

Image

yet some bugs remain, which need to be treated.

jmacura added a commit that referenced this issue Mar 6, 2024
+ cesium-test-app: Add example of a 3D (2.5D) GeoJSON

refs #4757
jmacura added a commit that referenced this issue Mar 18, 2024
jmacura added a commit that referenced this issue Mar 19, 2024
jmacura added a commit that referenced this issue Mar 20, 2024
+ cesium-test-app: Add example of a 3D (2.5D) GeoJSON

refs #4757
jmacura added a commit that referenced this issue Mar 22, 2024
+ cesium-test-app: Add example of a 3D (2.5D) GeoJSON

refs #4757
@jmacura
Copy link
Collaborator Author

jmacura commented Mar 22, 2024

Resolved in #4749

Cesium's own approach with "extrudedHeight" was followed, so if the layer contains "extrudedHeight" property, it is used to extrude the polygon/line into the specified height (above MSL).

@jmacura jmacura closed this as completed Mar 22, 2024
jmacura added a commit that referenced this issue Jun 20, 2024
+ cesium-test-app: Add example of a 3D (2.5D) GeoJSON

refs #4757
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