This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Exclude specific symbol in Maperitive or elsewhere?

1
1

Is there a way to do this in Maperitive - or in any other fashion? For example I need a map with all labels intact EXCEPT that one label that I want to remove/exclude/hide before exporting and printing as an image for a poster.

Side question: how does one add custom symbols to a map? Asking because if I understand this I could indirectly figure out how to remove as well.

asked 09 Sep '17, 01:29

montrealist's gravatar image

montrealist
31113
accept rate: 0%

edited 09 Sep '17, 01:47


One Answer:

1

With Maperitive you have two options:

  • before rendering: download the OSM data of interest, save to .osm file, open the file in an text editor (or even in JOSM) and remove the node/way/relation responsible for the feature (or maybe just remove the name tag or whatever it is that lends the label to it). Then open the OSM file in Maperitive and proceed as normal.
  • after rendering: Use Maperitive to render the map and save as SVG. Open in Inkscape, select the label and remove it.

To my knowledge, unlike in a database-backed rendering process like Mapnik with OSM-Carto, you cannot actually build a rendering rule in Maperitive that would say "draw this label except when the content is X".

answered 09 Sep '17, 09:35

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

Ah, so I can just edit the .osm file directly - how come this didn't occur to me? Thank you!

(11 Sep '17, 14:04) montrealist

Just be sure not to accidentally upload your changes to OSM ;)

(11 Sep '17, 14:50) Frederik Ramm ♦

Source code available on GitHub .