[MapProxy] MapProxy configuration

Oliver Tonnhofer olt at omniscale.de
Fri Dec 9 04:37:19 PST 2016


Hi,

check out the documentation of the TMS service: https://mapproxy.org/docs/nightly/services.html#tiled-map-services-tms
Especially the difference between /tms and /tiles


Regards,
Oliver

-- 
Oliver Tonnhofer  | Omniscale GmbH & Co KG  | https://omniscale.com
OpenStreetMap WMS and tile services         | https://maps.omniscale.com





> On 02.12.2016, at 16:55, Mikael Gronfeldt <mikael.gronfeldt at visma.com> wrote:
> 
> I have  situation where my MapProxy server request a different level from my OSM tile server than I expect.
> All in all it work fine, just that my Tile server cannot deliver tiles from level 19
> 
> My  yaml look like this:
> ....
>  osm_source:
>     type: tile
>     grid: osm_grid
>     url: http://<mapProxy ip>/osm_tiles/%(z)s/%(x)s/%(y)s.png
>     transparent: true
> .....
> 
> When I send the request http://<mapProxy ip>/mapproxy/tms/1.0.0/osm/osm_grid/17/26/35.png from my browser.
> 
> My mapproxy server sends this request to my Tile server:
> Snippet from my Apache access.log:
> <mapProxy ip> - - [02/Dec/2016:16:39:15 +0100] "GET /osm_tiles/18/26/262108.png HTTP/1.1" 200 352 "-" "MapProxy-1.9.0"
> 
> a request for a level 18 tile:
> http://<mapProxyip>/mapproxy/tms/1.0.0/osm/osm_grid/18/26/35.png
> 
> Will result in a 404
> HTTP Error "http://<tile_server_ip>/osm_tiles/19/26/524252.png": 404
> 
> Because my tile server cannot deliver level 19 tiles.
> 
> 1 is added to the %(z)s segment in all requests through all layers. X and Y are apparently not affected. 
> 
> How can I ensure that MapProxy do not request a level that is 1 higher than expected?
> 
> /Mikael 
> 
> _______________________________________________
> MapProxy mailing list
> MapProxy at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapproxy



More information about the MapProxy mailing list