Skip to content

CZML does not appear to support /P style ISO-8601 interval duration specification #197

@hcarter333

Description

@hcarter333

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions