[MapProxy] mapnik source config for OSM

Jorge Gaspar Sanz Salinas jsanz at osgeo.org
Mon Nov 14 10:06:20 EST 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

El 14/11/11 15:51, lionel b escribió:
> Hi,
> 
> I try to configure a mapnik source.
> 
> - I installed mapnik on a debian squeeze and I can play
> generate_tiles.py succesfully with an OSM postgis db.
> Mapnik version :
> dpkg -l | grep mapnik
> libmapnik0.7                    0.7.1-3
> python-mapnik                   0.7.1-3
> 
> - I installed mapproxy (1.2.1) and I configured my source like this :
> 
> layers:
>   - name: osm_mapnik
>     title: OSM mapnik
>     sources: [my_osm_mapnik]
> .........
> 
> sources:
>   my_osm_mapnik:
>     type: mapnik
>     mapfile: /my/path/to/osm.xml
> 
> if i try to display
> http://localhost/cache/demo/?wms_layer=osm_mapnik&format=image%2Fpng,
> nothing appends (request aborted after a very long time wait).
> I can display other layers (wms sources) without any problem so I think
> my mapproxy install is ok.
> I can't see any error neither in apache logs nor in mapproxy.log
> Did I miss something important ?
> Regards,
> 
> Lionel
> 

Have you tried to start your configuration with the mapserver-util
command line tool?

I use that very often to see all the log trace when starting the server
and doing requests.

Not sure if it's documented the "-b" parameter (or "--bind" I guess) but
with the VirtualEnv activated, I start my (remote) server with:

mapproxy-util serve-develop /path/to/conf.yaml -b host:port

Good luck

- -- 
Jorge Gaspar Sanz Salinas
http://es.osgeo.org
http://jorgesanz.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJOwS5sAAoJEAOYD75lvHdBsmgH/Rt3RbTt1Ulxk2Fxb1tkuj8x
Z8VgSNqufEgofV/xeuiwWFweYiDBVh4LTDIeOLzNvsc3O9HfMxZ6LA6SyY/hjS04
vhoSNl7a9p7vnHTQgXXqAr49K86WdHymYB1ycurbrGv4v9WjXf/OsSSPLdenR4b5
VJUDJ7+Sy4j1GmIP6IfZN2vPJKz/KNAkaaUjNydNO5+tzqpm82uM4IjUQVGR6dFg
4+j4hTSoN8tYQ4EbcgNxjpxSrEa/UcX3TxffV0dVuocMAKjeB2sOhZH9uFIEviah
IhaHGhB/4VLLR+/0U0fj9EW/16mAiHSoGDVzB0CdLNkQlYU7umB199FsNowSLWY=
=OKQb
-----END PGP SIGNATURE-----


More information about the MapProxy mailing list