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

2
1

Hello everybody,

as far as I understood, the OSM data stock is organized in layers, attributed to various contens, such as water, roads, forest, buildings etc.

Up to now I didnt find a possibility to export these layers in a manner inkscape can distinguish them - so they can be switched on and off etc.

Thanks and greetings,

Wolf

asked 15 Sep '10, 20:46

herrdeh's gravatar image

herrdeh
31113
accept rate: 0%


Simple one. Follow these steps:

  1. Download Maperitive (http://maperitive.net/) and run it
  2. Load your OSM file using the load-source path_to_my_osm_file command
  3. Export it to SVG using either the menu option or by the export-svg command

The exported SVG groups map features into SVG/Inkscape layers, so you'll be able to edit or hide them separately.

Here's how it looks in Adobe Illustrator (Inkscape shows it pretty much the same): alt text

permanent link

answered 16 Sep '10, 04:23

Breki's gravatar image

Breki
2.0k51843
accept rate: 10%

edited 20 Nov '10, 19:23

Inkscape allows you to select elements based on their style (for example fill color: fill:#ff0000;) using Edit->Find (Ctrl+F).

To get the style of an object, select the object and look in Edit->XML editor...

I used this trick to get the coastline out of the SVG map exported from the OpenStreetMap home page.

permanent link

answered 18 Sep '10, 22:16

ponchietto's gravatar image

ponchietto
6112
accept rate: 0%

OSM data is not organized in layers. Contrary to how usual GIS software works, with OSM it is not the data creator's job to decide which layer something is on ("this is a tree; add it to the natural layer"), but instead the data user's job ("give me all objects tagged as trees and combine them in a layer I'll call natural").

There is no existing software or service that will neatly arrange objects on SVG layers for you. Your best bet is probably to look at installing one of the renderers capable of generating SVG output (Mapnik, Osmarender, or Mapgen.pl - all on the Wiki) and then try to generate individual SVG files for each layer which you later combine. This will require some work.

permanent link

answered 15 Sep '10, 20:58

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

Guys thank you so much for the attention to my issue! :) I think I found the solution to my issue through the use of mapaperitive, super useful tool! I imported as source an "opencyclemap" map of the area in the program (using the EXPORT function in osm) and simply exported the map as SVG for Illustrator. Until now I managed to get fairly decent topographic map of the area to use as reference in my project. Still opened to even better solution!

permanent link

answered 16 Feb '15, 20:14

Alberto1989's gravatar image

Alberto1989
56113
accept rate: 0%

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:

×69
×47
×2

question asked: 15 Sep '10, 20:46

question was seen: 22,228 times

last updated: 16 Feb '15, 20:14

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