[MapProxy] Using mapproxy with Tilecache
Fabrellas Bertran, Isabel
isabel.fabrellas at icc.cat
Tue Mar 8 07:38:25 EST 2011
Hi,
I can't get using Mapproxy requesting data from Tilecache.
---
The configuration in mapproxy.yaml is:
layers:
- name: topo4326
title: topo4326
sources: [lupito_topo_cache]
caches:
lupito_topo_cache:
grids: [mygrid]
sources: [lupito_topo_tile]
sources:
lupito_topo_tile:
type: tile
grid: mygrid
url: http://lupito.icc.local/tilecache_2_10/tilecache.py?x=%(x)s&y=%(y)s&z=%(z)s&format=%(format)s
origin: nw
grids:
mygrid:
tile_size: [512, 512]
srs: 'EPSG:4326'
bbox: [0.0,39.375,5.625,45.0]
bbox_srs: 'EPSG:4326'
res: [0.010986328125, 0.0054931640625, 0.00274658203125, 0.001373291015625, 0.0006866455078125, 0.00034332275390625, 0.000171661376953125, 0.0000858306884765625, 0.00004291534423828125, 0.000021457672119140625, 0.000010728836059570312]
---
The tilecache configuration is:
[topo4326]
type=WMSLayer
url=http://elisi:8080/tcAltresProjeccions/wmsRedirect?
extension=png
size=512,512
levels=12
bbox=0,39.375,5.625,45.0
srs=EPSG:4326
---
Tilecache works as a TMS server:
http://lupito.icc.local/tilecache_2_10/tilecache.py/1.0.0/topo4326/0/0/0.png returns an image
---
But accessing via Mapproxy:
http://localhost:8080/tms/1.0.0/topo4326/0/0/0.png
I get this error:
2011-03-08 13:33:28,321 - INFO - 540:mapproxy.client.http.http:_log - lupito.icc
.local - - [08/Mar/2011:13:33:28 ] "GET /tilecache_2_10/tilecache.py?x=0&y=0&z=0
&format=png HTTP/1.1" 200 - "-" ""
2011-03-08 13:33:28,321 - ERROR - 540:mapproxy.service.tile:render - response is
not an image: (<?xml version="1.0" encoding="UTF-8" ?>
<Services>
<TileMapService version="1.0.0" href="http://lupito.icc.local/1.
0.0/" />
</Services>)
127.0.0.1 - - [08/Mar/2011:13:33:28 +0200] "GET /tms/1.0.0/topo4326/0/0/0.png HT
TP/1.1" 500 292 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:1.9.2.8)
Gecko/20100722 Firefox/3.6.8 ( .NET CLR 3.5.30729)"
Thank you,
Isabel.
-----Missatge original-----
De: Oliver Tonnhofer [mailto:olt at omniscale.de]
Enviat: miércoles, 02 de marzo de 2011 15:11
Per a: Fabrellas Bertran, Isabel
A/c: mapproxy at lists.osgeo.org
Tema: Re: [MapProxy] Using mapproxy with Tilecache
On 02.03.2011, at 14:19, Fabrellas Bertran, Isabel wrote:
> Response to : http://localhost:8080/tms/1.0.0/lupito_topo/0/0/0.png
> "internal error"
>
> 127.0.0.1 - - [02/Mar/2011:14:16:02 +0200] "GET /tms/1.0.0/lupito_topo/0/0/0.png
> HTTP/1.1" 500 14 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:1.9.2.
> 8) Gecko/20100722 Firefox/3.6.8 ( .NET CLR 3.5.30729)"
> Traceback (most recent call last):
> [...]
> raise InvalidSourceQuery()
> InvalidSourceQuery
Your cache uses a different grid than your tile source. That is not supported at the moment.
Assuming that `mygrid` matches your tilecache configuration:
caches:
lupito_topo_cache:
grids: [mygrid]
sources: [lupito_topo_tile]
sources:
lupito_topo_tile:
type: tile
grid: mygrid
url: http://lupito.icc.local/tilecache_2_10/tilecache.py?x=%(x)s&y=%(y)s&z=%(z)s&format=%(format)s
origin: nw
Regards,
Oliver
--
Oliver Tonnhofer | Omniscale GmbH & Co KG | http://omniscale.de
http://mapproxy.org | https://bitbucket.org/olt
More information about the MapProxy
mailing list