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 does not appear to support /P style ISO-8601 interval duration specification #197

Open
hcarter333 opened this issue May 8, 2024 · 2 comments

Comments

@hcarter333
Copy link

When an interval is specified in a CZML file as

"interval": "2024-03-14T23:25:00Z/P0Y0M0DT0H1M",

The sandcastle app console returns the following errors stack:

DeveloperError: Invalid ISO 8601 date.
Error
    at new DeveloperError (https://sandcastle.cesium.com/CesiumUnminified/Cesium.js:10552:13)
    at JulianDate.fromIso8601 (https://sandcastle.cesium.com/CesiumUnminified/Cesium.js:19794:21)
    at TimeInterval.fromIso8601 (https://sandcastle.cesium.com/CesiumUnminified/Cesium.js:41690:38)
    at intervalFromString (https://sandcastle.cesium.com/CesiumUnminified/Cesium.js:140320:33)
    at processProperty (https://sandcastle.cesium.com/CesiumUnminified/Cesium.js:140338:28)
    at processPacketData (https://sandcastle.cesium.com/CesiumUnminified/Cesium.js:140477:9)
    at Array.processPolyline (https://sandcastle.cesium.com/CesiumUnminified/Cesium.js:143368:5)
    at processCzmlPacket (https://sandcastle.cesium.com/CesiumUnminified/Cesium.js:143936:28)
    at CzmlDataSource._processCzml (https://sandcastle.cesium.com/CesiumUnminified/Cesium.js:144258:9)
    at loadCzml (https://sandcastle.cesium.com/CesiumUnminified/Cesium.js:144049:20)

Per the Wikipedia page, interval durations can be specified using the /P format.

There's an example of this issue here.

@hcarter333
Copy link
Author

The issue appears to be in the following code

image

Notice that there is not context in the call that assigns stop2. It has no way to handle 'P' specifiers.

@shunter
Copy link
Member

shunter commented May 17, 2024

Do you have an example of czml-writer code that generates CZML output with the duration syntax?

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

No branches or pull requests

2 participants