[MapProxy] Problem using MapProxy as a TMS client for a WMS server
John Taranu
jtaranu at firstbasesolutions.com
Thu Dec 15 16:24:50 EST 2011
I'm trying to use MapProxy as a TMS client, producing tiles as a WMS
service. That is, it reads tiles from another TMS service and combines them
into a larger WMS image.
Unfortunately I get the following error when making a WMS request:
<ServiceException>Could not get retrieve any sources:
tile size of cache and tile source do not match: (256, 256) != (1114,
679)</ServiceException>
The request looks like this:
http://mapproxy/service?LAYERS=ortho_2008&REQUEST=GetMap&FORMAT=image/jpeg&W
IDTH=1114&HEIGHT=679&BBOX=662764.77,4884158.7,663495.62,4884604&SRS=EPSG:269
17&VERSION=1.1.1&STYLES=&SERVICE=WMS
Here's the relevant portion of the mapproxy config file:
services:
demo:
wms:
srs: ['EPSG:4326', 'EPSG:900913', 'EPSG:3785', 'EPSG:26917']
image_formats: ['image/jpeg', 'image/png']
md:
title: WMS Proxy
layers:
- name: ortho_2008
title: Orthos 2008
sources: [ortho2008tms]
caches:
# No caches are used
sources:
ortho2008tms:
type: tile
url:
http://tileserver/tms/1.0.0/%(layer)s_cache at googlemaps_grid_1/%(z)s/%(x)s/%(
y)s.jpg
origin: sw
grid: google1
grids:
google1:
srs: 'EPSG:3785'
res_factor: 2
num_levels: 25
bbox: [-20037508, -20037508, 20037508, 20037508]
bbox_srs: 'EPSG:3785'
origin: ul
tile_size: [256,256]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapproxy/attachments/20111215/8c5d432f/attachment.html
More information about the MapProxy
mailing list