Skip to content

Commit 627cc16

Browse files
authored
only allow RFC3339 timestamps (#13)
* don't allow multiple timestamp formats * mention that the OGC moving features standard allows more formats * reflow
1 parent 2095eb5 commit 627cc16

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,10 @@ To properly represent trajectories, the `geometry` field of a item **must** have
4343

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

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

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

0 commit comments

Comments
 (0)