Fantastic, thanks Dane and Waldemar.

Editing the osm.xml was very straight forward.
I had previously tried to do something similar with Osmarender but found that a bit complex.

Off to try and learn to implement Cairo now !

Thanks again

Simon



On Aug 20, 2010, at 4:22 PM, simon blackmore wrote:

Hi everyone,

I have just climbed the mountain of installing mapnik, postgres etc etc on OS X.


Congrats and welcome!

It all seems to be working and now and I am keen to lean about controlling the render process. Does anyone
know a simple way to omit street names from the render.


Labels are done within xml using the <TextSymbolizer /> (http://trac.mapnik.org/wiki/XMLConfigReference#Rule ) so open the osm.xml and the xml files in the 'inc' folder and search for that. Then either just delete the <Rules> that contain them or find the <Style> that the TextSymbolizers are a part of, check its name, then find the <Layer> that uses that style and set the status of the layer to status="off" to disable the rendering of the layer.

I know that will sound really complicated, and the osm styles are really large, so you might want to get started rendering some simple styles and practice with them (http://trac.mapnik.org/wiki/XMLGettingStarted )

I am guessing that its best to edit the osm.xml file but I am not quite sure where to start.

It is the biggest, most sophisticated style around so don't start with it.

I found some
quite brilliant tutorials on getting Mapnik up and running but not so much on this sort of thing.

Any tips or links would be very welcome.

At the moment I am rendering with this

$ ./generate_xml.py --dbname gis --user simon  --accept-non
$ ./my_generate_image.py


That does render the osm.xml, just does not require you do pass it as an argument. Try nik2img if you want that control on the command line.

I think I need to pass the osm.xml file into the process but I am not sure how to do that either.

Thanks for your help

Cheers

Simon



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


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

Reply via email to