From OpenStreetMap Wiki
Jump to navigation Jump to search
Public-images-osm logo.svg barrier = city_wall
2014 Bystrzyca Kłodzka, mury obronne 05.jpg
A fortification used to defend settlements in ancient to modern times. Show/edit corresponding data item.
Rendering in OSM Carto
Group: barriers
Used on these elements
should not be used on nodesmay be used on waysshould not be used on areasshould not be used on relations (except multipolygon relations)
Useful combination
See also
Status: approvedPage for proposal

A city wall is a fortification used to defend a city or settlement from potential aggressors. In ancient to modern times, they were used to enclosing settlements.

How to map

Draw a way along the city wall and add barrier=city_wall. For wider walls, draw an area along the city wall outline and add barrier=city_wall+area=yes(or type=multipolygon for multipolygon relation).

Use historic=yes for historic city walls.

If there is a higher and a lower terrain on either side of the city wall (similar to barrier=retaining_wall), then the lower terrain (usually outside the settlement) should be on the right side of the line, relative to the drawn way direction. If there is no height difference, two_sided=yes should be added (see proposal).

Examples with visualisation:

Case Drawn way Rendering example Tagging Description
With height difference ElementWay.png Element citywall rend.png barrier=city_wall There are different terrain heights to the left and right of the city wall. Behaves the same as barrier=retaining_wall: the lower side is on the right side of the way direction; marked with dots in the rendering example.
Without height difference ElementWay.png Element citywall2sided rend.png barrier=city_wall + two_sided=yes Both sides of the city wall have the same (terrain) height; marked with dots on both sides in the rendering example.

See also