diff --git a/titiler/stacapi/templates/wmts-getcapabilities_1.0.0.xml b/titiler/stacapi/templates/wmts-getcapabilities_1.0.0.xml index 27b1d1e..e896e65 100644 --- a/titiler/stacapi/templates/wmts-getcapabilities_1.0.0.xml +++ b/titiler/stacapi/templates/wmts-getcapabilities_1.0.0.xml @@ -57,7 +57,7 @@ {% for layer in layers %} - {{ layer.title }} + {{ layer.title or layer.id }} {{ layer.bbox[0] }} {{ layer.bbox[1] }} {{ layer.bbox[2] }} {{ layer.bbox[3] }} @@ -113,7 +113,11 @@ {% for tms in tilematrixsets %} {{ tms.id }} - {{ tms.crs.srs }} + {% if tms.crs.to_epsg() %} + urn:ogc:def:crs:epsg::{{tms.crs.to_epsg()}} + {% else %} + {{ tms.crs.srs.replace("http://www.opengis.net/def/", "urn:ogc:def:").replace("/", ":")}} + {% endif %} {% for matrix in tms %} {{ matrix.id }}