ReferenceValue not allowed in Interpolation?

According to https://github.com/AnalyticalGraphicsInc/czml-writer/wiki/AlignedAxis , billboard#alignedAxis is interpolatable.

When I use

“alignedAxis”: [

{“interval”:“2014-09-07T23:41:48Z/2014-09-07T23:44:45Z”,“unitCartesian”:“X”},

{“interval”:“2014-09-07T23:44:45Z/2014-09-07T23:48:47Z”,“unitCartesian”:“Z”}

]

with 1.36, the CZML is processed without problems. When I cnage one of the values to a velocityReference

“alignedAxis”: [

{“interval”:“2014-09-07T23:41:48Z/2014-09-07T23:44:45Z”,“velocityReference”:“Track-16638#position”},

{“interval”:“2014-09-07T23:44:45Z/2014-09-07T23:48:47Z”,“unitCartesian”:“Z”}

]

in order to align the billboard with the path for part of the track, the parser throws the error

“{“interval”:“2014-09-07T23:41:48Z/2014-09-07T23:44:45Z”,“velocityReference”:“Track-16638#position”} is not a valid CZML interval.”

Using

“alignedAxis”: {

   "velocityReference": "Track-16638#position"

}

works as well without problems, but I need to have the billboard to be ‘Up-Aligned’ for part of the track.

Am I missing something, or is a reference value not allowed as an interpolated value?

Klaus

I confirmed that “velocityReference” doesn’t work within an interval. This appears to be an error in the implementation and I will open an issue to correct this in the future.

To be clear, this is not related to interpolation, which approximates a continuous function from samples. Interval syntax defines a property as piecewise function of time.

To work around this problem in the code, you can use an extra level of indirection by using the existing “reference” syntax. For the interval of interest, the alignedAxis can be defined as a reference to another fake object’s alignedAxis, which itself can then be defined as the velocityReference value.

See this sandcastle example for a working demonstration.

http://cesiumjs.org/Cesium/Apps/Sandcastle/index.html?src=Hello%20World.html&label=Showcases&gist=cb475d4ca156d9af4e26680b54fd52e7

Thanks, Scott - that did it!