[MapProxy] Using mapproxy with Tilecache

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


I'm trying to use MapProxy requesting data from Tilecache.

 

My configuration in  mapproxy.yaml is:

layers:

  - name: lupito_topo

    title: prova

    sources: [lupito_topo_cache]

caches:

  lupito_topo_cache:

    grids: [GLOBAL_MERCATOR, global_geodetic_sqrt2]

    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:

  global_geodetic_sqrt2:

    base: GLOBAL_GEODETIC

    res_factor: 'sqrt2'

  mygrid:

    tile_size: [512, 512]

    srs: 'EPSG:4326'    

    bbox: [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]

 

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

 

And I get:

<TileMapServerError>

<Message>invalid request (/tms)</Message>

</TileMapServerError>

 

Can you help me?

 

Thanks in advance,

 

Isabel.

 

Isabel Fabrellas Bertran

Unitat SIG - Web
Institut Cartogràfic de Catalunya <http://mercuri.icc.cat/website/mob_nf/mob1/mob2/inici2.htm?CONSULTA=Institut%20Cartogr%25E0fic%20de%20Catalunya&XYADDRESS=429486:4580392> 
Parc de Montjuïc, E-08038 Barcelona
Tel. (+34) 93 567 15 00 (ext. 3283)



 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapproxy/attachments/20110302/a19a1cbf/attachment.html


More information about the MapProxy mailing list