Dear mapnik users,
 
I am having a hard time with mapnik. Basically, I installed everything
according to the
instructions on the site, I can get mapnik to generate images and tiles from
a command prompt,
yet I only get grey (land) and blue (water) on the pictures, no data from
Postgis (like roads, etc)
is depicted on the mapnik outputs.
 
1- I am on a Windows XP (sp3)
2- Postgres (8.3) and Postgis (1.5) are installed correctly.
3- osm data has been imported correctly - I can query the data directly
    through pgAdminIII
4- Python 2.6 is installed under C:\Python, the paths are set to the root
and the /script folder.
    I get the python command prompt when I do:
    cmd.exe
    python
    (results in >>> showing in the command window)
5- mapnik is installed under C:\mapnik-0.7.1, the paths are set and
PythonPath is correct.
6- proj4 is installed under C:\proj and the path is set.
 
Here are the path data:
PATH C:\mapnik-0.7.1\lib;C:\Python26;C:\Python26\Scripts;C:\proj\bin
PYTHONPATH C:\mapnik-0.7.1\python\2.6\site-packages
 
7- I downloaded all world_boundaries and shape stuff
   http://tile.openstreetmap.org/world_boundaries-spherical.tgz
   http://tile.openstreetmap.org/processed_p.tar.bz2
   http://tile.openstreetmap.org/shoreline_300.tar.bz2
 
http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/10m/
cultural/10m-populated-places.zip
 
http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/110m
/cultural/110m-admin-0-boundary-lines.zip
8- I generated the xml using generate_xml.py with boundaries set to
2,49,7,52 (Belgium - as I uploaded belgium.osm in PostGis).
    I checked the <Parameter> tags in the resulting xml, all seems correct
            <Parameter name="dbname">postgis</Parameter> (that's the name I
gave to the PostGis DB I created).
            <Parameter name="estimate_extent">false</Parameter>
            <Parameter name="extent">2,49,7,52</Parameter>
            <Parameter name="host">localhost</Parameter>
            <Parameter name="password"></Parameter> (yep, no PW - only
running on a local workstation)
            <Parameter name="port">5432</Parameter>
            <Parameter name="type">postgis</Parameter>
            <Parameter name="user">postgres</Parameter>
9- When I run generate_image.py (with a reference to the new xml and correct
boundaries), I get an image with the
    continent shape of Belgium + Netherlands, which
    a- strangely enough is much higher than expected (should be 49 to 52,
seems to be much more)
    b- only has blue, grey and dark grey, no roads or other PostGis data).
 
10- Worse, when I run generate_tiles.py after editing the boundaries and
using the command prompt
      "SET MAPNIK_MAP_FILE=myXML.xml" to refer to the xml I generated, I get
tiles in the folder I expected,
      yet again the tiles are grey and blue only, no PostGis date, and I get
two "proj_init_error" lines among the
      generated tile references on the command prompt screen.
      "failed to initialize projection with: +proj=merc +a=6378137
+b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m
+nadgrids=@null +no_defs +over"
 
The documentation was of no help: proj_init_error refers to a problem with
the proj4 library, yet it is correctly installed and referenced in the PATH
 
Would anyone know what I could check next to get mapnik working correctly ?
 
Thanks.
     
 
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to