[MapProxy] EPSG:4326 requests from a Tile Source

Jason Lee jaslee.st at gmail.com
Mon Dec 6 12:36:41 EST 2010


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.

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

Regards,
Jason

On Mon, Dec 6, 2010 at 1:13 PM, Oliver Tonnhofer <olt at omniscale.de> wrote:

>
> On 06.12.2010, at 14:00, Jason Lee wrote:
>
> > Hi,
> > I'm trying to configure a Tile source in MapProxy. The source url points
> to custom map tiles on my local server in a similar format to OpenStreetMap
> tiles ("http://mytileserver/z/x/y.png"), the following is my mapproxy.yaml
> setup :-
> >
> > layers:
> >   my_tiles:
> >     title: My local stash of map tiles
> >     sources: [my_tile_cache]
> >
> > caches:
> >   my_tile_cache:
> >     grids: [GLOBAL_MERCATOR, global_geodetic_sqrt2]
> >     sources: [my_tile_source]
>
> You can only use one grid if you are using tile sources and that grid needs
> to be in the same projection as the source (EPSG:900913/GLOBAL_MERCATOR in
> your case). Reprojecting incoming tiles is not supported. You can request
> that cache in any projection though.
>
>
> > sources:
> >   my_tile_source:
> >     type: tile
> >     url: http://localhost/mytiles/%(z)s/%(x)s/%(y)s.png
> >     origin: nw
> >
> > After saving the changes and MapProxy restarting itself, I see the new
> "my_tiles" source layer listed in "http://localhost:8080/demo/". However,
> all but 1 of the services (TMS, EPSG:900913) return valid map tiles. I see
> that the WMS demo is set to EPSG:4326 and changing to EPSG:900913
> subsequently works fine.
> >
> > Is there something I am missing for my Tiles source layer setup to be
> able to return maps in EPSG:4326? (or any other SRS other than web mercator
> 900913)
>
>
> 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)
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapproxy/attachments/20101206/01f471a9/attachment.html


More information about the MapProxy mailing list