Skip to content

Commit 6050173

Browse files
authored
Generalise eo3-compatible product handling in materialised view definition (#996)
* Generalise eo3-compatible product handling in materialised view definition. * Remove accidental whitespace. * Fix WMTS issue exposed by stricter WMTS validation in newer versions of OWSLib.
1 parent bc94156 commit 6050173

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

datacube_ows/sql/extent_views/create/011_create_new_space_view_raw.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,5 +96,5 @@ select id,
9696
4326
9797
) as spatial_extent
9898
from agdc.dataset where
99-
metadata_type_ref in (select id from metadata_lookup where name in ('eo3_landsat_ard', 'eo3_sentinel_ard'))
99+
metadata_type_ref in (select id from metadata_lookup where name like 'eo3_%')
100100
and archived is null

datacube_ows/templates/wmts_capabilities.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@
162162
{% for t in product_ranges.times %}
163163
<Value>{{ t }}</Value>
164164
{% endfor %}
165+
<Default>{{ product_ranges.times[-1] }}</Default>
165166
</Dimension>
166167
{% endif %}
167168

0 commit comments

Comments
 (0)