[MapProxy] Tiled wms configuration problems

Jonas Saul jonas at geospatial.ee
Mon Apr 29 06:51:37 PDT 2013


Hi!

I'm new to MapProxy and I'm currently struggling with yaml tiled wms 
configuration.
I'm using Python27 and MapProxy 1.5.0 on Windows 7 x64

When I set the source url to - http://tiles.maaamet.ee/tm/s/?
     I get error message : could not retrieve tile: response is not an 
image.

Could you point out what is the solution and what I'm doing wrong?

Additional information about Maa-amet tiled wms service : 
http://tiles.maaamet.ee/tm/s/?service=wms&version=1.1.1&request=GetCapabilities


Best regards,
Jonas


_My mapproxy.yaml configuration :_

services:
   demo:
   kml:
   tms:
     # needs no arguments
   wmts:
   wms:
     srs: ['EPSG:4326', 'EPSG:900913','EPSG:3301']
     image_formats: ['image/jpeg', 'image/png']
     md:
       # metadata used in capabilities documents
       title: MapProxy WMS Proxy
       abstract: This is the fantastic MapProxy.
       online_resource: http://www.maakaart.ee/
       contact:
         person: name
         position: contact
         organization: company
         address:
         city:
         postcode:
         country:
         phone:
         fax:
         email:
       access_constraints:
         Use it as you like. For mass-usage please inform maintainers.
         The data is licensed as Creative Commons Attribution-Share 
Alike 2.0
         (http://creativecommons.org/licenses/by-sa/2.0/)
       fees: 'None'

layers:
   - name: kaart
     title: WMS kaart
     sources: [maaamet_cache]

caches:
   maaamet_cache:
     grids: [maaamet_tc]
     sources: [maaamet_kaart]
     meta_size: [8, 8]
     format: image/png
     request_format: image/png

sources:
   maaamet_kaart:
     type: tile
     grid: maaamet_tc
     url: http://tiles.maaamet.ee/tm/s/?

grids:
   maaamet_tc:
     tile_size: [256, 256]
     srs: 'EPSG:3301'
     bbox: [40500, 5993000, 1064500, 7017000]
     bbox_srs: 'EPSG:3301'
     origin: nw
     res: [4000.0, 2000.0, 1000.0, 500.0, 250.0, 125.0, 62.5, 31.25, 
15.625, 7.8125, 3.90625, 1.953125, 0.9765625, 0.48828125]

   cache:
     base_dir: './cache_data'
     lock_dir: './cache_data/locks'

   image:
       resampling_method: nearest


===============================
=     Terminal window messages      =
===============================

C:\Python27\Scripts\mymapproxy>mapproxy-util serve-develop 
mapproxy-test.yaml
[2013-04-29 16:35:25,470] mapproxy.config - INFO - reading: 
C:\Python27\Scripts\mymapproxy\mapproxy-test.yaml
[info]  * Running on http://127.0.0.1:8080/
[info]  * Restarting with reloader: stat() polling
[2013-04-29 16:35:25,895] mapproxy.config - INFO - reading: 
C:\Python27\Scripts\mymapproxy\mapproxy-test.yaml
[info] 127.0.0.1 - - [29/Apr/2013 16:35:38] "GET 
/demo/?srs=EPSG%3A3301&format=image%2Fpng&wms_layer=kaart HTTP/1.1" 200 -
[info] 127.0.0.1 - - [29/Apr/2013 16:35:38] "GET /demo/static/site.css 
HTTP/1.1" 200 -
[info] 127.0.0.1 - - [29/Apr/2013 16:35:38] "GET /demo/static/logo.png 
HTTP/1.1" 200 -
[info] 127.0.0.1 - - [29/Apr/2013 16:35:38] "GET 
/demo/static/OpenLayers.js HTTP/1.1" 200 -
[info] 127.0.0.1 - - [29/Apr/2013 16:35:38] "GET 
/demo/static/theme/default/style.css HTTP/1.1" 200 -
[info] 127.0.0.1 - - [29/Apr/2013 16:35:38] "GET 
/demo/static/img/north-mini.png HTTP/1.1" 200 -
[info] 127.0.0.1 - - [29/Apr/2013 16:35:38] "GET 
/demo/static/img/west-mini.png HTTP/1.1" 200 -
[info] 127.0.0.1 - - [29/Apr/2013 16:35:38] "GET 
/demo/static/img/east-mini.png HTTP/1.1" 200 -
[info] 127.0.0.1 - - [29/Apr/2013 16:35:38] "GET 
/demo/static/img/south-mini.png HTTP/1.1" 200 -
[info] 127.0.0.1 - - [29/Apr/2013 16:35:38] "GET 
/demo/static/img/zoom-plus-mini.png HTTP/1.1" 200 -
[info] 127.0.0.1 - - [29/Apr/2013 16:35:38] "GET 
/demo/static/img/zoom-world-mini.png HTTP/1.1" 200 -
[info] 127.0.0.1 - - [29/Apr/2013 16:35:38] "GET 
/demo/static/img/zoom-minus-mini.png HTTP/1.1" 200 -
[2013-04-29 16:35:38,957] mapproxy.source.request - INFO - GET 
http://tiles.maaamet.ee/tm/s/? 200 - 13
[2013-04-29 16:35:38,957] mapproxy.source.request - INFO - GET 
http://tiles.maaamet.ee/tm/s/? 200 - 12
[2013-04-29 16:35:38,957] mapproxy.source.tile - WARNING - could not 
retrieve tile: response is not an image: (<?xml version="1.0" 
encoding="UTF-8" ?>
             <Services>
                 <TileMapService version="1.0.0" 
href="http://tiles.maaamet.ee/tm/s/1.0.0/" />
             </Services>)
[2013-04-29 16:35:38,957] mapproxy.source.tile - WARNING - could not 
retrieve tile: response is not an image: (<?xml version="1.0" 
encoding="UTF-8" ?>
             <Services>
                 <TileMapService version="1.0.0" 
href="http://tiles.maaamet.ee/tm/s/1.0.0/" />
             </Services>)
[2013-04-29 16:35:38,986] mapproxy.source.request - INFO - GET 
http://tiles.maaamet.ee/tm/s/? 200 - 26
[2013-04-29 16:35:39,002] mapproxy.source.tile - WARNING - could not 
retrieve tile: response is not an image: (<?xml version="1.0" 
encoding="UTF-8" ?>
             <Services>
                 <TileMapService version="1.0.0" 
href="http://tiles.maaamet.ee/tm/s/1.0.0/" />
             </Services>)
[2013-04-29 16:35:39,003] mapproxy.source.request - INFO - GET 
http://tiles.maaamet.ee/tm/s/? 200 - 38
[2013-04-29 16:35:39,003] mapproxy.source.tile - WARNING - could not 
retrieve tile: response is not an image: (<?xml version="1.0" 
encoding="UTF-8" ?>
             <Services>
                 <TileMapService version="1.0.0" 
href="http://tiles.maaamet.ee/tm/s/1.0.0/" />
             </Services>)
[info] 127.0.0.1 - - [29/Apr/2013 16:35:39] "GET 
/service?LAYERS=kaart&FORMAT=image%2Fpng&SRS=EPSG%3A3301&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&TRANSPARENT=TRUE&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&BBOX=-655500,5905000,1760500,7105000&WIDTH=1208&HEIGHT=600 
HTTP/1.1" 200 -

===============================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20130429/fa621796/attachment.html>


More information about the MapProxy mailing list