Closed khoohuibo closed 3 years ago
Hi @khoohuibo , thanks for your interest in czml3! I guess you refer to this piece of code:
And here are a couple of examples of how to use IntervalValue
from the tests:
Would you please paste here what code is producing the error you describe, so we can try to reproduce it? For my understanding everything is working as expected, but CZML documentation is sparse and it's also possible that I'm missing something.
Closing because of inactivity.
I seem to be unable to insert values other than booleans into an IntervalValue, defined within types.py
I essentially run into this error upon hitting the following function:
And another exception occurs as well
This is interesting because I am inserting a number '1' as the value, and json.dumps works on that number.
Now i noticed that TYPE_MAPPING is a dictionary defined at the top.
Obviously to circumvent the error, all one needs to do is insert the keys for int and/or float
Now my question is, is my integer and float type meant to fail? Does Cesium's interval values not accept intervalvalues of numbers apart from boolean values?
I am trying to create a time-varying width of polylines using the IntervalValues, considering that IntervalValues can accept BooleanValues. I would like to vary the width of the polylines between 1-5 dependent on another parameter in my simulation.
I am using Spyder 4.1.4, Python 3.7,7, My operating system is windows 10.
Here is the class in question