2

WMTS specifies GetTile requests using HTTP POST, by simply encoding all request params in the body. Is this supported by GWC, and if so, what headers etc. do I have to set?

I naively tried this:

POST http://myserver.com/services/wmts

service=WMTS
request=GetTile
version=1.0.0
layer=mylayer
format=image%2Fpng
tilecol=12
tilerow=34

Which gives me:

<?xml version="1.0" encoding="UTF-8"?>
<ExceptionReport version="1.1.0" xmlns="http://www.opengis.net/ows/1.1"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.opengis.net/ows/1.1 http://geowebcache.org/schema/ows/1.1.0/owsExceptionReport.xsd">
  <Exception exceptionCode="MissingParameterValue" locator="request">
    <ExceptionText>Missing Request parameter</ExceptionText>
  </Exception>
</ExceptionReport>

1 Answer 1

2

If you look in the GetCapabilities response for GeoServer's WMTS service you will see it only advertises GET.

<ows:Operation name="GetTile">
  <ows:DCP>
    <ows:HTTP>
      <ows:Get xlink:href="http://localhost:8080/geoserver/gwc/service/wmts?">
        <ows:Constraint name="GetEncoding">
          <ows:AllowedValues>
            <ows:Value>KVP</ows:Value>
          </ows:AllowedValues>
        </ows:Constraint>
      </ows:Get>
    </ows:HTTP>
  </ows:DCP>
</ows:Operation>
2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.