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

Hi, I’m preparing some city maps for a travel guide book, and I need to add markers (arrows, circles, numbers) for sights. Since the map clip and the lists of sights are always changing, I’d like to automate that task, i.e. read the locations from a spreadsheet and put markers on the map with a Python script. I’m as far as converting OSM to SVG with Maperitive and to PDF with Inkscape, that works well.

As far as I understand, it’s not possible to add elements in Maperitive, only style what’s in the OSM data. Or is there a way, maybe via GPX?

So I should probably try to modify the SVG via Inkscape’s API? Do you know any examples for that? (Of course I’ll gladly provide mine, if I accomplish the task.) I also don’t understand how to "convert" from geo location coordinates to SVG coordinates. Any hints?

Thanks in advance! Hraban

asked 28 Jul '15, 08:38

Hraban's gravatar image

Hraban
1864610
accept rate: 0%

edited 29 Jul '15, 05:07


I think you can use more than one OSM file with Maperitive. There is no reason why you should not convert your markers to OSM style XML and create specific rules in Maperitive to style this data. Just make sure you don't upload this file to OSM.

permanent link

answered 28 Jul '15, 14:27

SK53's gravatar image

SK53 ♦
28.1k48268433
accept rate: 22%

Thank you, I got a similar answer in Maperitive’s Google Group, and it works for me. I didn’t think of OSM as a simple format that I can write myself.

I’d still like to understand the conversion of geographical map coordinates to geometrical SVG coordinates, but will open a new thread for that.

(29 Jul '15, 05:06) Hraban

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:

×710
×98
×48

question asked: 28 Jul '15, 08:38

question was seen: 4,761 times

last updated: 29 Jul '15, 05:07

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