poliastro / czml3

Python 3 library to write CZML
https://pypi.org/project/czml3/
MIT License
40 stars 33 forks source link

Position missing arguments for interval #94

Closed mwarnick123 closed 4 months ago

mwarnick123 commented 3 years ago

Found in the the tests how to use the epoch in Position

astrojuanlu commented 3 years ago

Hi @mwarnick123 , can you give some more details? I don't see interval here: https://github.com/AnalyticalGraphicsInc/czml-writer/wiki/Position

astrojuanlu commented 3 years ago

This: https://github.com/AnalyticalGraphicsInc/czml-writer/wiki/CZML-Structure#intervals

astrojuanlu commented 3 years ago

Isn't this solved by

Packet(position=IntervalValue(...))

?

mwarnick123 commented 3 years ago

Hi @astrojuanlu, I want a polygon to appear for only a certain period of time and to write that I need to write the following for the position:

position: {
      interval: "2012-08-04T16:00:00Z/2012-08-04T17:00:00Z",
      cartographicDegrees: [-45.0, 20, 4000000],
    },

to get the interval I can use TimeInterval(), but I still need to declare interval which can be done in the Position() class.

This can be used on other objects and placed in the PositionList() class as well.

mwarnick123 commented 3 years ago

https://sandcastle.cesium.com/?src=CZML%20Polygon%20-%20Interpolating%20References.html&label=CZML This is the example I am trying to use czml3 to create the czml file