Skip to content

Commit e404051

Browse files
committed
Fallback to layer id and use urn identifier in tms supportedCRS
1 parent 90b849f commit e404051

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

titiler/stacapi/templates/wmts-getcapabilities_1.0.0.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
<Contents>
5858
{% for layer in layers %}
5959
<Layer>
60-
<ows:Title>{{ layer.title }}</ows:Title>
60+
<ows:Title>{{ layer.title or layer.id }}</ows:Title>
6161
<ows:WGS84BoundingBox>
6262
<ows:LowerCorner>{{ layer.bbox[0] }} {{ layer.bbox[1] }}</ows:LowerCorner>
6363
<ows:UpperCorner>{{ layer.bbox[2] }} {{ layer.bbox[3] }}</ows:UpperCorner>
@@ -113,7 +113,7 @@
113113
{% for tms in tilematrixsets %}
114114
<TileMatrixSet>
115115
<ows:Identifier>{{ tms.id }}</ows:Identifier>
116-
<ows:SupportedCRS>{{ tms.crs.srs }}</ows:SupportedCRS>
116+
<ows:SupportedCRS>urn:ogc:def:crs:{{ tms.id }}</ows:SupportedCRS>
117117
{% for matrix in tms %}
118118
<TileMatrix>
119119
<ows:Identifier>{{ matrix.id }}</ows:Identifier>

0 commit comments

Comments
 (0)