Hi all - I need to print several maps of towns for an organisation, but they need to be styled a certain way (just roads and rivers, and certain colours). Is there away to do this programatically without having to export each map and edit the pdf's? I've seen a few forums which point me to third party sites, but a lot of them are offline and even then there's so many red herrings it seems. Is there a really common method people use? Thanks! asked 11 Feb '17, 22:35 dilby00 |
If the maps don't cover too large an area, then your easiest option might be doing this with Maperitive. Maperitive allows you to load data for an area from the Overpass data service, then have it styled with a map style you defined beforehand, and export as SVG or PNG. Best thing about this, it is scriptable, so you could generate a script that repeats this action for all the towns you're interested in. Of course you'll have to invest some time before hand to come up with the right style definition. An alternative is using the Mapnik rendering engine with a commandline frontend like nik4.py. This works well even with larger areas but requires importing all OSM data into a PostGIS database first. And of course the styling work, too, albeit in a different styling language than Maperitive's. answered 11 Feb '17, 22:43 Frederik Ramm ♦ |