-
Notifications
You must be signed in to change notification settings - Fork 27
key error on loads() #17
Comments
@HumptyNumpty while this library is stable it's not being developed as actively as Cesium itself. The example billboard document you referenced from this page: [
{
"id":"Headquarters",
"availability":"2012-06-20T16:00:00Z/2012-06-20T16:02:00Z",
"position":{
"cartesian":[
1216469.9357990976,-4736121.71856379,4081386.8856866374
]
},
"billboard":{
"color":{
"rgba":[
0,255,255,255
]
},
"horizontalOrigin":"CENTER",
"image":"http://cesiumjs.org/images/Cesium_Logo.png",
"scale":1.0,
"show":[
{
"interval":"2012-06-20T16:00:00Z/2012-06-20T16:02:00Z",
"boolean":true
}
],
"verticalOrigin":"CENTER"
}
}
] Raises a
Taking this into consideration, this edit of the example file does load without throwing any errors: [
{
"id":"Headquarters",
"availability":"2012-06-20T16:00:00Z/2012-06-20T16:02:00Z",
"position":{
"cartesian":[
1216469.9357990976,-4736121.71856379,4081386.8856866374
]
},
"billboard":{
"color":{
"rgba":[
0,255,255,255
]
},
"image":"http://cesiumjs.org/images/Cesium_Logo.png",
"scale":1.0,
"show":true
}
}
] This is certainly a shortcoming of the Python/CZML library and an opportunity for a contributor to add this support. |
Many thanks. On Wed, 7/10/15, Christopher Clark notifications@github.com wrote: Subject: Re: [czml] key error on loads() (#17) @HumptyNumpty while [ Raises a ValueError when loaded because the The horizontalOrigin attribute Taking this into consideration, this edit of the example [ This is certainly a shortcoming of the Python/CZML — |
I am trying to read a simple czml file (see below)
trying as per the readme
doc = czml.CZML()
with open(fpath, 'r') as f:
doc.loads(f.read())
fails with a ValueError on bb.load(billboard) in czml.pyc
Any suggestions?
Many thanks
simple.czml
(from https://github.com/AnalyticalGraphicsInc/cesium/wiki/CZML-in-Cesium)
[
{
"id":"Headquarters",
"availability":"2012-06-20T16:00:00Z/2012-06-20T16:02:00Z",
"position":{
"cartesian":[
1216469.9357990976,-4736121.71856379,4081386.8856866374
]
},
"billboard":{
"color":{
"rgba":[
0,255,255,255
]
},
"horizontalOrigin":"CENTER",
"image":"http://cesiumjs.org/images/Cesium_Logo.png",
"scale":1.0,
"show":[
{
"interval":"2012-06-20T16:00:00Z/2012-06-20T16:02:00Z",
"boolean":true
}
],
"verticalOrigin":"CENTER"
}
}
]
The text was updated successfully, but these errors were encountered: