[MapProxy] Using mapproxy with Tilecache

Fabrellas Bertran, Isabel isabel.fabrellas at icc.cat
Wed Mar 2 08:19:38 EST 2011


Hi,

Thank you very much for yor fast response!

I have removed the '?', but now I get:

Response to : http://localhost:8080/tms/1.0.0/lupito_topo/0/0/0.png
"internal error"

In the Command line:

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):
  File "c:\mapproxy_venv\lib\site-packages\mapproxy\wsgiapp.py", line 146, in __
call__
    resp = self.handlers[handler_name].handle(req)
  File "c:\mapproxy_venv\lib\site-packages\mapproxy\service\base.py", line 31, i
n handle
    return handler(parsed_req)
  File "c:\mapproxy_venv\lib\site-packages\mapproxy\service\tile.py", line 71, i
n map
    tile = layer.render(tile_request, use_profiles=tile_request.use_profiles)
  File "c:\mapproxy_venv\lib\site-packages\mapproxy\service\tile.py", line 200,
in render
    tile = self.tile_manager.load_tile_coord(tile_coord, with_metadata=True)
  File "c:\mapproxy_venv\lib\site-packages\mapproxy\cache\tile.py", line 73, in
load_tile_coord
    return self.load_tile_coords([tile_coord], with_metadata)[0]
  File "c:\mapproxy_venv\lib\site-packages\mapproxy\cache\tile.py", line 88, in
load_tile_coords
    created_tiles = creator.create_tiles(uncached_tiles)
  File "c:\mapproxy_venv\lib\site-packages\mapproxy\cache\tile.py", line 161, in
 create_tiles
    created_tiles = self._create_single_tiles(tiles)
  File "c:\mapproxy_venv\lib\site-packages\mapproxy\cache\tile.py", line 185, in
 _create_single_tiles
    created_tiles.extend(self._create_single_tile(tile))
  File "c:\mapproxy_venv\lib\site-packages\mapproxy\cache\tile.py", line 201, in
 _create_single_tile
    source = self._query_sources(query)
  File "c:\mapproxy_venv\lib\site-packages\mapproxy\cache\tile.py", line 216, in
 _query_sources
    return self.sources[0].get_map(query)
  File "c:\mapproxy_venv\lib\site-packages\mapproxy\source\tile.py", line 41, in
 get_map
    raise InvalidSourceQuery()
InvalidSourceQuery
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)"
---

Thanks again,

Isabel.



-----Missatge original-----
De: Oliver Tonnhofer [mailto:olt at omniscale.de] 
Enviat: miércoles, 02 de marzo de 2011 14:05
Per a: Fabrellas Bertran, Isabel
A/c: mapproxy at lists.osgeo.org
Tema: Re: [MapProxy] Using mapproxy with Tilecache

Hi,

On 02.03.2011, at 14:00, Fabrellas Bertran, Isabel wrote:

> In an Openlayers viewer,  I try to access to MapProxy service with:
>  
>                                                var layer4 = new OpenLayers.Layer.TMS('TMS lupito_topo',
>                                                 'http://localhost:8080/tms?',
>                                                                {layername: 'lupito_topo', type: 'png',
>                                                                tileSize: new OpenLayers.Size(512, 512),isBaseLayer: false, visibility: false});
> The request is:
> http://localhost:8080/tms?1.0.0/lupito_topo/0/0/0.png

It's without the '?': 'http://localhost:8080/tms/' in OpenLayers and http://localhost:8080/tms/1.0.0/lupito_topo/0/0/0.png for a tile.


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