Skip to content

Commit

Permalink
only allow RFC3339 timestamps (#13)
Browse files Browse the repository at this point in the history
* don't allow multiple timestamp formats

* mention that the OGC moving features standard allows more formats

* reflow
  • Loading branch information
keewis authored Feb 4, 2025
1 parent 2095eb5 commit 627cc16
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,10 @@ To properly represent trajectories, the `geometry` field of a item **must** have

Once that is the case, the `datetimes` property has to be an array with the same number of elements
as the `coordinates` property of the geometry. Its values **must** describe time instants in
monotonic increasing order (without duplicated values) and may be:
- numeric values of milliseconds since 1970-01-01 00:00:00 UTC (unix timestamps)
- strings describing IETF RFC 3339 encoded timestamps
- strings describing ISO8601 encoded timestamps following the Gregorian calendar
monotonic increasing order (without duplicated values) and **must** be formatted as IETF RFC 3339 encoded timestamps.

Mixing different kinds of timestamp encodings is not allowed.
The OGC moving features standard also allows UNIX timestamps (milliseconds since 1970-01-01 00:00:00 UTC) and ISO8601-encoded timestamps in the
Gregorian calendar. These have been explicitly disallowed to follow common practice in the STAC ecosystem.

The `datetime` property from the base metadata should be `null`, and the `start_datetime` and
`end_datetime` properties should have the same value as the first and last values from `datetimes`.
Expand Down

0 comments on commit 627cc16

Please sign in to comment.