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

Edit: No idea why my uploaded images aren't shown.

I'm trying to host my own map with a few changes, including renaming "watery" areas using osmosis and this docker setup. If I only try to match water or waterway everything works as expected, just missing some areas that don't have those tags.

code

osmosis --read-pbf bw.osm.pbf --tag-transform file="transforms.xml" --write-pbf updated-bw.osm.pbf

renamed rhine

As soon as I add any mention of natural:* water areas just disappear.

transform xml with natural key
Rhine not renamed and missing the blue color

I just started using OSM, so my knowledge is limied. How does this happen and what would be the correct way to make this work? The log then "sometimes" spout out errors:

Mapnik LOG> 2024-01-19 21:55:02: SVG PARSING ERROR:"SVG support error: <enable-background> attribute is not supported"
Mapnik LOG> 2024-01-19 21:55:04: SVG PARSING ERROR:"SVG support error: <enable-background> attribute is not supported"
Mapnik LOG> 2024-01-19 21:55:04: SVG PARSING ERROR:"SVG support error: <overflow> attribute is not supported"
Mapnik LOG> 2024-01-19 21:55:04: SVG PARSING ERROR:"SVG support error: <enable-background> attribute is not supported"
Mapnik LOG> 2024-01-19 21:55:04: SVG PARSING ERROR:"SVG support error: <enable-background> attribute is not supported"
Mapnik LOG> 2024-01-19 21:55:04: SVG PARSING ERROR:"SVG support error: <enable-background> attribute is not supported"
Mapnik LOG> 2024-01-19 21:55:04: SVG PARSING ERROR:"SVG support error: <enable-background> attribute is not supported"

asked 20 Jan, 12:38

Gor1lla's gravatar image

Gor1lla
11113
accept rate: 0%

edited 20 Jan, 12:51

I suspect the $64,000 question will be "what's actually in the database"?

Just to check, everything works (and you don't get the "Mapnik log errors" when you are not using osmosis?

(20 Jan, 14:15) SomeoneElse ♦

For info, in case it helps, some working transformations (using osmium and osm-tag-transform, but perhaps adaptable to your use).

(20 Jan, 14:19) SomeoneElse ♦

@SomeonElse It works as expected if I don't change anything or just the waterways. I used the Baden-Wuerttemberg map from here https://download.geofabrik.de/europe/germany.html

(20 Jan, 22:38) Gor1lla

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:

×252
×101
×3

question asked: 20 Jan, 12:38

question was seen: 555 times

last updated: 20 Jan, 22:38

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