[MapProxy] mapproxy and mapnik2

Frank Broniewski brfr at metrico.lu
Fri Aug 3 04:22:57 PDT 2012


Hi Luca,

If you use mapproxy-seed and your web server at the same time, and both 
run under another user (e.g. www and luca), there's a chance that the 
lock directory is not writable by the other user.
That means, if you run mapproxy-seed as luca, the lock directory has 755 
(rwx,rx,rx) as default permission and is only writable by you. If now 
the webserver tries to write into that directory it is blocked out and 
the lock directory exception occurs

Frank

Am 03.08.2012 11:42, schrieb Luca Delucchi:
> Maybe I found the problem using mapproxy-seed I discover that the
> problem is on my configuration. I added a bounding box containing only
> Italy and so for the first 8 level there are 0 tiles, how can fix it?
> I try to change resolution using mapproxy-utils scale but nothing
> change. This is my mapproxy.yaml
>
> 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
>
>


-- 
Frank BRONIEWSKI

METRICO s.à r.l.
géomètres
technologies d'information géographique
rue des Romains 36
L-5433 NIEDERDONVEN

tél.: +352 26 74 94 - 28
fax.: +352 26 74 94 99
http://www.metrico.lu


More information about the MapProxy mailing list