I'm trying to host my own map with a few changes, including renaming "watery"
areas using osmosis and this docker setup:
https://switch2osm.org/serving-tiles/using-a-docker-container/
I get the pbf directly from geofabrik. (In this case using
Germany/Baden-Wuerttemberg)
The command I use is: osmosis --read-pbf bw.osm.pbf --tag-transform
file="transforms.xml" --write-pbf updated-bw.osm.pbf
Matching water or waterway keys works as expected. Like this:
<?xml version="1.0"?>
<translations>
<translation>
<match mode="or">
<tag k="water" match_id="a" v=".*"/>
<tag k="waterway" match_id="b" v=".*"/>
</match>
<output>
<copy-unmatched/>
<tag from_match="a" k="name" v="Pfinz"/>
<tag from_match="b" k="name" v="Pfinz"/>
</output>
</translation>
</translations>
Some areas don't use those keys, but have the natural:water, so when I try to
include this key or just that key (instead of the other twos):
<?xml version="1.0"?>
<translations>
<translation>
<match mode="or">
<tag k="natural" match_id="c" v="water"/>
</match>
<output>
<copy-unmatched/>
<tag from_match="c" k="name" v="Pfinz"/>
</output>
</translation>
</translations>
osmosis doesn't log any errors, but using that file will result in this:
https://imgur.com/a/r6ZJAOO
The matching areas, like the Rhine (Rhein in german) are missing part of their
blue area, the lakes to the left are missing entirely.
The area is here, to compare:
https://www.openstreetmap.org/search?whereami=1&query=49.0177%2C8.3051#map=15/49.0177/8.3051
This happens at multiple spots, not just this one.
I'm new to OSM and all the tools, so any help is appreciated very much
_______________________________________________
osmosis-dev mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/osmosis-dev