NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

3
1

I want to render some SVG maps in original Mapnik style (as seen on the osm.org website).

I know already

This answer from Andy Allen suggests to use Nik2img.py (where another confusion arises, as there is that just mentioned Nik2img source at Github and another one at Google-Code – both the same?)

  1. Can Nik2Img create SVG or any other vector files?
  2. Do I need a database (e.g. PostGIS) or can I render directly from a given osm extract file?
  3. I have read, that some instructions are outdated, because Carto is used in the rendering process of the Mapnik map tiles of OSM.org since August 2013. Where can I find latest instructions on how to install a Mapnik rendering instance?

asked 23 Oct '13, 12:46

erik's gravatar image

erik
558152234
accept rate: 9%

edited 23 Oct '13, 19:44


  1. nik2img can create SVG images, however do not assume that you could meaningfully edit them in Inkscape or even Illustrator. The SVG, coming out of the Cairo library, is relatively convoluted and hardly editable at all.

  2. You need an osm2pgsql-imported database if you want to use the standard OSM style. Mapnik is capable of processing .osm files directly but in that case the syntax for styling is vastly different, and no ready-made style exists that takes you from .osm via Mapnik to a map that looks like standard OSM.

  3. You can ignore everything you read about Carto and simply get the latest OSM Mapnik style from here http://svn.openstreetmap.org/applications/rendering/mapnik/ - this will then be a few months old but you probably won't notice a difference.

permanent link

answered 23 Oct '13, 12:52

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

If I remember correctly, Maperitive can produce vector graphic output, and it has a map style available that comes close to mapnik.

permanent link

answered 23 Oct '13, 18:48

stephan75's gravatar image

stephan75
12.6k556210
accept rate: 6%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×440
×341
×47

question asked: 23 Oct '13, 12:46

question was seen: 6,959 times

last updated: 23 Oct '13, 19:44

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum