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

CZML Exporter #7372

Open
OmarShehata opened this issue Dec 3, 2018 · 4 comments
Open

CZML Exporter #7372

OmarShehata opened this issue Dec 3, 2018 · 4 comments

Comments

@OmarShehata
Copy link
Contributor

I was surprised to see there wasn't a way to export a CesiumJS scene using CZML! I think this would be pretty useful, in this particular case on the forum they're trying to save the entities they're drawing in their app. This could be something like how a JSON.stringify() will take an object and serialize it. We can have a viewer.entities.toCZML which will serialize an entity collection.

@OmarShehata OmarShehata added the good first issue An opportunity for first time contributors label Jun 25, 2019
@OmarShehata
Copy link
Contributor Author

After seeing the new KML export class here #7921, I think this could be a good first contribution (not trivial, but not too involved either), and I can imagine it being very useful for a variety of use cases. The linked PR could be a good reference.

@OmarShehata
Copy link
Contributor Author

OmarShehata commented Jul 19, 2019

Here's a community Sandcastle to export a Cesium scene as GeoJSON! https://groups.google.com/d/msg/cesium-dev/KT2brToFGR8/sdUjxNfCEAAJ

@hpinkos hpinkos added onramping and removed good first issue An opportunity for first time contributors labels Sep 19, 2019
@icemagno
Copy link

icemagno commented Jan 25, 2022

Hi all. The Sandcastle example pointed by Omar is not working anymore.

Uncaught TypeError: Cannot read properties of undefined (reading 'x') (on line 172)

Has something changed from Sep, 2019 to now ?

This feature is a very important missing feature. GeoJSON is a standard and I think Cesium could export its elements to it.
it's worth remembering Cesium can read GeoJSON directly so why it cannot write?

@icemagno
Copy link

About the error:

Use hierarchy._value.positions[0].x instead hierarchy._value[0].x

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