[MapProxy] mapproxy and mapnik2

Luca Delucchi lucadeluge at gmail.com
Fri Aug 3 03:21:40 PDT 2012


Sorry I forgot the seed.yaml

2012/8/3 Luca Delucchi <lucadeluge at gmail.com>:

>
> services:
>   demo:
>   kml:
>   tms:
>     # needs no arguments
>   wmts:
>   wms:
>     srs: ['EPSG:4326', 'EPSG:900913']
>     # image_formats: ['image/jpeg', 'image/png']
>     md:
>       # metadata used in capabilities documents
>       title: OSM Geographike
>       abstract: OSM rendering provides by Geographike.
>       online_resource: http://2.115.130.153
>       contact:
>         person: Simone Gadenz
>         position:
>         organization: Geographike
>         address:
>         city:
>         postcode:
>         country: Italy
>         phone:
>         fax:
>         email: info at omniscale.de
>       access_constraints:
>         test di prova
>       fees: 'None'
>
> layers:
>    - name: osm
>      title: OSM rendering Geographike
>      sources: [osm_cache]
>
> caches:
>   osm_cache:
>     grids: [GLOBAL_MERCATOR, global_geodetic_sqrt2]
>     sources: [osm_mapnik]
>
> sources:
>   osm_mapnik:
>     type: mapnik
>     mapfile: /PATH/TO/XMLFILE/geographic2.xml
>     use_mapnik2: true
>
> grids:
>   global_geodetic_sqrt2:
>     base: GLOBAL_GEODETIC
>     res_factor: 'sqrt2'
>     srs: 'EPSG:900913'
>     bbox: [6.6, 35.4, 18.6, 47.1]
>     bbox_srs: 'EPSG:4326'
>     res: [
>          #  res            level     scale @90.7 DPI
>           280.0000000000, #  0     1000000.00000000
>           140.0000000000, #  1      500000.00000000
>            70.0000000000, #  2      250000.00000000
>            35.0000000000, #  3      125000.00000000
>            17.5000000000, #  4       62500.00000000
>             8.7500000000, #  5       31250.00000000
>             4.3750000000, #  6       15625.00000000
>             2.1875000000, #  7        7812.50000000
>             1.0937500000, #  8        3906.25000000
>             0.5468750000, #  9        1953.12500000
>     ]
>
> globals:
>   cache:
>     # where to store the cached images
>     base_dir: './cache_data'
>     # where to store lockfiles
>     lock_dir: './cache_data/locks'
>   image:
>       resampling_method: nearest
>

seeds:
  myseed1:
    caches: [osm_cache]
    grids: [GLOBAL_MERCATOR]
    #views: [italy]
    coverages: [italy]
    levels:
      to: 10

coverages:
  italy:
    bbox: [6.6, 35.4, 18.6, 47.1]
    bbox_srs: "EPSG:4326"
    res: [
         #  res            level     scale @90.7 DPI
          280.0000000000, #  0     1000000.00000000
          140.0000000000, #  1      500000.00000000
           70.0000000000, #  2      250000.00000000
           35.0000000000, #  3      125000.00000000
           17.5000000000, #  4       62500.00000000
            8.7500000000, #  5       31250.00000000
            4.3750000000, #  6       15625.00000000
            2.1875000000, #  7        7812.50000000
            1.0937500000, #  8        3906.25000000
            0.5468750000, #  9        1953.12500000
    ]

and when I launch mapproxy-seed I have

[2012-08-03 11:30:32,877] mapproxy.seed.config - WARNING - unknown
'res' in coverages.italy

-- 
ciao
Luca

http://gis.cri.fmach.it/delucchi/
www.lucadelu.org


More information about the MapProxy mailing list