Skip to content
This repository has been archived by the owner on Oct 27, 2022. It is now read-only.

Use of Clock is not documented #26

Open
rutsky opened this issue Jan 12, 2017 · 1 comment
Open

Use of Clock is not documented #26

rutsky opened this issue Jan 12, 2017 · 1 comment

Comments

@rutsky
Copy link

rutsky commented Jan 12, 2017

  1. czml.czml.Clock is not exported, i.e. it's not available as czml.Clock as other primitives are (but czml.CZMLPacket accepts dict of properties for Clock).

  2. currentTime, multiplier, range and step attributes have no defaults, so they must be specified.

Example of how I use Clock in my code:

        packet = czml.CZMLPacket(
            id='document',
            version='1.0',
            clock=czml.czml.Clock(
                currentTime=datetime.datetime.now().isoformat(),
                multiplier=1.0,
                range='CLAMPED',
                step='SYSTEM_CLOCK_MULTIPLIER',
            )
        )
@demarlio25
Copy link

demarlio25 commented Apr 3, 2018

I've been looking to a solution to this problem as well. Any updates to this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants