[MapProxy] mapproxy-seed - Create OSM like tile structure

Debasish Sahu debasish.sahu at gmail.com
Thu Feb 10 03:00:01 EST 2011


Hi Oliver,

Many thanks for the response . I am still having a hard time generating the
tiles so that I can overlay it over OSM tiles.

i.e the view is expecting /5/22/12.png as per tile.openstreetmap.org where
as where as the 12 is not getting generated through maproxy with the below
configuration , the one I am having is

\05\000\000\022\000\000\
16.png
17.png
18.png
19.png

The data for which I would like to create the tiles is in EPSG:900913 and
the bbox is 8596550.829, 3340667.637, 8598788.35, 3342816.079 hosted in
GeoServer WMS.

Here are my configs

seed.yaml

views:
    myview:
        bbox: [8596550.829, 3340667.637, 8598788.35, 3342816.079]
        bbox_srs: EPSG:900913
        level: [5,6]
        srs: ['EPSG:900913']

seeds:
    osm_cache:
        views: ['myview']
        remove_before:
          time: '2010-02-20T16:00:00'

mapproxy.yaml

caches:
  osm_cache:
    grids: [mygrid]
    sources: [osm_wms]

sources:
  osm_wms:
    type: wms
    req:
      url: http://ip:port/geoserver/wms?
      version: 1.1.0
      layers: streets
      transparent: true

Can you help me with some ideas ?

-Debs

On Wed, Feb 9, 2011 at 6:20 PM, Oliver Tonnhofer <olt at omniscale.de> wrote:

>
> On 09.02.2011, at 13:24, Debasish Sahu wrote:
> > I am creating a mobile client and would like to pre-create the tiles in
> OSM structure so that it can be used offline. Tilecache has a parameter such
> as GoogleDisk which creates such as format x,y ....
>
> Ah, OK.
>
> > Can you provide me hints as to how I can convert the current tile
> structure to Mapnik/OSM style ?
>
> You can write a script that moves the tiles into the other layout.
> 05/001/234/124/002/129/123.png becomes 5/1234123/2129123.png
>
> Or you can add support for different layouts in MapProxy:
>
> https://bitbucket.org/olt/mapproxy/src/d75e51722cdf/mapproxy/cache/file.py#cl-69
>
> Regards,
> Oliver
>
> --
> Oliver Tonnhofer    | Omniscale GmbH & Co KG    | http://omniscale.de
> http://mapproxy.org | https://bitbucket.org/olt
>
>
>
>


-- 
Thanks and Warm Regards
Debasish Sahu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapproxy/attachments/20110210/c7cec591/attachment-0001.html


More information about the MapProxy mailing list