-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Labels
Description
Describe the bug
The WMTS test suite complains when it finds a URLTemplate whose resourceType that is not "tile" or "FeatureInfo".
https://github.com/opengeospatial/ets-wmts10/blob/master/src/main/resources/xsd/ogc/wmts/1.0/wmtsGetCapabilities_response.xsd#L380
However, the published schema is not restricted to it, and reads differently:
https://schemas.opengis.net/wmts/1.0/wmtsGetCapabilities_response.xsd
<complexType name="URLTemplateType">
<attribute name="format" type="ows:MimeType" use="required">
<annotation>
<documentation>Format of the resource representation that can be retrieved one resolved the URL template.</documentation>
</annotation>
</attribute>
<attribute name="resourceType" type="wmts:ResourceTypeCodeType" use="required"/>
<attribute name="template" use="required">
<annotation>
<documentation>URL template. A template processor will be applied to substitute some variables between {} for their values and get a URL to a resource. We cound not use a anyURI type (that conforms the character restrictions specified in RFC2396 and excludes '{' '}' characters in some XML parsers) because this attribute must accept the '{' '}' caracters.</documentation>
</annotation>
<simpleType>
<restriction base="string">
<pattern value="([A-Za-z0-9\-_\.!~\*'\(\);/\?:@\+:$,#\{\}=&]|%[A-Fa-f0-9][A-Fa-f0-9])+"/>
</restriction>
</simpleType>
</attribute>
</complexType>
Somehow, the ETS schema and the published one diverged.
Also, checking the specification, it mentions the two values as mandatory to support tile and featureinfo requests in the restful approach, but I don't see any mention of it being limited to those two values.