Hi Alejandro,

On May 25, 2009, at 3:53 AM, Alejandro Perea wrote:

> Hello everybody,
>
> First of all, sorry for my poor english.
>
> I'm rendering a map loading osm.xml, but I want to print over the  
> map a track (route, or whatever). This route are in a GML file, so  
> there is a way to do this?
>

Are you running mapnik 0.6.0 on mac or linux? If so you can use the  
OGR driver (built it with INPUT_PLUGINS=all) to create and render the  
GML file directly.

http://trac.mapnik.org/wiki/OGR

The OGR plugin is very similar to the other Mapnik datasource plugins  
except that you need to supply the <layer> parameter. The name of OGR  
Layers can be found by running the 'ogrinfo' tool on your GML file like:

$ ogrinfo <your_file.gml> -s0 -al

>
> I read that rendering maps follow the painter's algorithm. So, in  
> case that I could print the route over the map, this code will be  
> previos render(m,im) line?
>

Just put the xml to create this datasource at the bottom off your  
osm.xml and it should render on top of your map.

Dane


_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to