Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a GNU/Linux command line tool that allows to generate an image file from OSM, preferably as an SVG?

share|improve this question
up vote 9 down vote accepted

Here's a dedicated page for OSM SVG exporting:

One way to do this through command line would be to use Maperitive - here's a tutorial on how to generate SVG. You can simply write all the commands mentioned in the tutorial into a text file and run Maperitive with the file specified in the command line. Here are some user-written instructions on how to install Maperitive on Linux.

(Disclaimer: I'm the author of Maperitive).

share|improve this answer
Thank you (for the answer and the software). – ℝaphink Jan 12 '12 at 9:16

A Perl script called Geo-OSM-Tiles-0.02 might just do the job. From the module's description:

This script downloads all map tiles from an OpenStreetMap tile server for some geographic
region in a range of zoom levels. The PNG images of the tiles are stored in a directory   
tree that mirrors the paths from the server. 

A bounding box of geographic coordinates and a range of zoom levels must be selected 
by command line options.

Output's PNGs though.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.