Skip to content

Commit

Permalink
Allow to override the step in this time notation
Browse files Browse the repository at this point in the history
  • Loading branch information
Michaëlis committed Dec 10, 2024
1 parent 307ca25 commit 45687c4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions geoportal/geoportailv3_geoportal/views/luxthemes.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,12 @@ def _merge_time(time_, layer_theme, layer, wms):
timepositions[0][:-1]
+ wms_obj.get("default_timestep", 'PT600S')
)
if len(timepositions) == 1:
tp = timepositions[0].split("/")
if len(tp) == 3:
tp[2] = wms_obj.get("default_timestep", tp[2])
timepositions[0] = "/".join(tp)
wms_obj["timepositions"] = timepositions
extent = parse_extent(
wms_obj["timepositions"],
wms_obj.get("defaulttimeposition", None)
Expand Down

0 comments on commit 45687c4

Please sign in to comment.