[MapProxy] EPSG:4326 requests from a Tile Source

Oliver Tonnhofer olt at omniscale.de
Tue Dec 7 03:29:37 EST 2010


On 06.12.2010, at 18:36, Jason Lee wrote:

> Thanks again Oliver.
> Just thinking, if I add an additional WMS source layer, "wms_layer", referencing the "my_tiles" layer as the WMS source. Would the reprojection then work?
> i.e. "wms_layer" request in EPSG:4326 would trigger the "my_tiles" EPSG:900913 Tiles source on the same server. I did try it, but MapProxy seemed to be hanging.


You want to access the tiles in another projection? Hmmm, it should work with a configuration like this:

layers:
  cache1:
    sources: [cache1]
  cache2:
    sources: [cache2]

caches:
  cache1:
    sources: [tilesource]
    grids: [GLOBAL_MERCATOR]
  cache2:
    sources: [wmssource]
    grids: [GLOBAL_GEODETIC]

sources:
  tilesource:
    ...
  wmssource:
   req:
    url: http://localhost:8080/service?
    layers: cache1

> Could you tell me more specifically, as you mentioned, how I would be able to request cached data in another projection?

That should work out of the box if you use WMS.


Regards,
Oliver

-- 
Oliver Tonnhofer <olt at omniscale.de>
Omniscale - Dominik Helle, Oliver Tonnhofer GbR
Nadorster Str. 60, 26123 Oldenburg
Tel: +49(0)441/9392774-2 (Fax: 9)



More information about the MapProxy mailing list