Skip to content

Add WMTS Time Dimension Support (Discrete Times + Timeline) #7742

@ShubhamSharmaFAO

Description

@ShubhamSharmaFAO

Add WMTS Time Dimension Support (Discrete Times + Timeline)

As part of the WMTS implementation supporting FAO infrastructure, I would like to contribute WMTS Time Dimension Support. Please review the following proposal:

Summary

Bring upstream WMTS to parity on time handling, matching the current branch:

  • Parse WMTS Dimension for time, including lists and ISO ranges (start/end/period).
  • Expand ranges to discrete instants (honoring maxRefreshIntervals), expose them to the timeline/animation stack.
  • Select a default time (capabilities Default if present, otherwise latest discrete time).
  • Pass the chosen time into WMTS requests (including REST ResourceURL templates).

Acceptance criteria

  • WMTS layer with a time dimension shows a Terria timeline; stepping/animating updates time in requests.
  • ISO time ranges in capabilities are expanded into discrete instants (bounded by maxRefreshIntervals).
  • Default time comes from the capabilities Default value when present; otherwise the most recent discrete time is used.
  • REST ResourceURL templates receive the selected time value (single timestamp).

Testing

  • Unit/integration:
    • ISO range expansion to discrete times (start/end/interval) with maxRefreshIntervals cap.
    • Default time selection logic (capabilities Default vs latest).
    • Request construction: time propagated into REST template URLs and WMTS parameters.
  • Manual:
    • Use a WMTS layer with time ranges; verify timeline appears, stepping updates time, and tiles load.
    • Verify a range like 2018-01-01/2020-01-01/P1M expands and animates; check that the latest date is chosen when no default is specified.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions