Gianluca,
>
> > Here you can find the non working modified demo code:
> > http://pastie.org/2631400 SOURCE
> >
>
> I have never used the C++ mapnik bindings, so may be talking nonsense, but
from a quick scan through your code I see that it is quite a complicated
example, and you have a section of code:
parameters p;
p["type"]="postgis";
p["host"]="127.0.0.1";
p["port"]=5432;
p["dbname"]="gis";
p["user"]="postgres";
p["table"]="planet_osm_roads";
p["password"]="";
Now I have never used planet_osm_roads - I am not really sure what it is for
- I always render roads from the planet_osm_line table with something like:
"select way, highway, name from planet_osm_line where highway is not
null"
Unfortunately without me knowing the c++ bindings, I am not sure how to do
this - I would try to get it going using python and an XML configuration
file.
When I was learning mapnik I wrote a little presentation to summarise my
understanding of the process -
http://www.slideshare.net/jones139/rendering-openstreetmap-data-using-mapnik.
Slide 15 may be relevant to you as it includes the select statement in an
xml configuration file, that you could try to use in your c++ version.
My recommendation would be to prune it down to a very simple example - maybe
one layer that is a shapefile (say the coastlines) to prove that you have
the projections right etc., then try adding the roads on top of it.
Hope that helps a bit.
Graham.
--
Graham Jones
Hartlepool, UK.
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users