[MapProxy] WMTS KVP service problem.
olt at omniscale.de
Fri Dec 14 04:57:11 PST 2012
On 14.12.2012, at 13:05, Raffaello Bertini wrote:
> the error i've got with openlayers is:
> Failed to load resource: the server responded with a status of 400 (Bad Request)
> Mapproxy service error:
> The requested tile is outside the bounding box of the tile map.
> I'm using the url /service
> and the url for the request is:
> what's wrong with KVP?
The tile matrices are called `00`, `01`, `02`,... and not 0, 1, 2 (see capabilities document). The RESTful service converts the strings to integers, the KVP not.
The WMTS standard defines the tilematrix as a string and not a number (unlike TMS) and you will be able to use tilematices (zoom levels) like 1:100k, 1:50k and then be able to add a 1:75k later without getting in trouble with changed level numbers. This is not configurable in MapProxy right now, but it will be in future releases.
So the behavior of the RESTful WMTS is a bit backwards compatible with the TMS service (so that you can easily change your OpenLayers client from TMS to WMTS). KVP clients will need to parse the capabilities.
Hope that clarifies the current behavior.
Oliver Tonnhofer | Omniscale GmbH & Co KG | http://omniscale.de
http://mapproxy.org | https://github.com/olt | @oltonn
More information about the MapProxy