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

5
1

If an administrative boundary is going along a river in its centre (the river is effectively the boundary). Yet the administrative boundary is likely defined independently (intentionaly along the river, but if the river changed the boundary would not move automatically).

  • should they share the same way together (minimum redundancy, more complicated relations)?
  • should they share nodes only (easy to do)?
  • should they be completely independent?

How should it be mapped?

asked 02 Sep '11, 20:59

LM_1's gravatar image

LM_1
3.3k335188
accept rate: 10%


Sharing nodes is not recommended and should only be used if the shared segment is rather short. This may look as if it were "easy to do" but it is actually difficult to edit - try refining the geometry of such a multi-way in JOSM and you'll find that you can only refine one way at a time.

If you do not have exact data for the administrative boundary, but all you have is your assumption that it is "likely defined independently" then I would use the river as part of my boundary relation (and the relation is not more difficult just because one of its ways is a river rather than a specially drawn admin boundary).

If on the other hand you have exact data for the administrative boundary and you know it to be not only independent, but in fact different from the river centreline, then draw both as their own ways, and maybe even add a note tag to tell other mappers that you've drawn two lines on purpose and that they should please refrain from merging both lines.

permanent link

answered 02 Sep '11, 21:25

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

1

In fact I have very precise data for the administrative boundary and it is intentionally put in the river centerline.
I meant independent in the sense of being defined by set of geographically coded lines rather than wherever the river is. Currently they ar exactly in the river's centerline.
The question was whether this should play any role (defined by coordinates in the river/by the river itself).

(02 Sep '11, 21:45) LM_1

My recommendation would be to not try to be too clever. Use the same geometry for both. If someone later moves the river then they will - wrongly - move the admin boundary also but I suggest to cross that bridge when we come to it. Even if you make two totally independent geometries now, it is not unlikely that someone moving the river will also move the boundary, assuming they are meant to run together.

(02 Sep '11, 22:07) Frederik Ramm ♦

The river way should always be tagged as a river, and never be an untagged line that just so happens to be part of a waterway relation.

It may be part of an administrative boundary relation, and may be tagged boundary=administrative in addition to having a waterway tag, but I'd consider that optional.

As I said above, use the same way if the boundary is defined by the river, and use a separate geometry if the boundary is defined independently of the river (i.e. ask yourself "what happens if the river moves?").

I'd still advise against having several ways share nodes for anything but a short stretch. JOSM may have become more sophisticated but at the same time there are now other editors for whom we do not wish to make life harder.

permanent link

answered 15 Jul '15, 16:45

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

(Edit after receiving answers, see above, consolidate view for future users): The question is quite old, but still relevant. Assume the following situation: Border is defined by the river, hence runs along its "centreline". This is quite a realistic scenario as rivers usually do not move (very much), especially in mountainous or sparsely populated areas.

(Old) Example from the Iran-Turkmenistan border, meanwhile changed: alt text

Clearly, the resulting picture should look like in the area to the right. There, the boundary and the river match visibly (like in reality); in the database however, they are different ways, but share the same nodes (two ways glued togehter). This cannot be seen from the picture, but can be found out by looking at the data directly.

Although in JOSM, you could nowadays easily refine the geometry of two ways that are "glued" together (using the w shortcut e. g.), there might be other editors that do not allow this. Furthermore, the JOSM validator detects an error "overlapping ways".

Furthermore: "glueing" ways together might be a bad practice from a logical point of view ("data hygiene"): after all, you actually have one element in the database that describes one physical shape (the geometrical line), and this shape has two meanings: 1. river and 2. boundary. Now logically, this would imply you should draw one line and tag it appropriately to represent several functions.

To illustrate it, the desired result should look like this:

  1. Draw a way along the waterway (that defines the border) and tag is as a an appropriate waterway, may be assign it additionally to a waterway relation(s).
  2. Tag the the drawn way (now with waterway=river e. g.) additionally with boundary keys and include it in the necessary boundary type relations (there are most likely several ones like nation, province, county etc. depending on the country-specific hierarchy and admin levels).

(May be this description can be added to an appropriate wiki page, as I see a lot of "ugly" borders around the world..... I might do it one day...)

permanent link

answered 15 Jul '15, 16:09

sakudo's gravatar image

sakudo
131137
accept rate: 0%

edited 16 Jul '15, 10:41

Even old question, would like to share one answer here, without open same discussion again. What about having one relation for the administrative boundary and one for the waterway? In that case we should have one way included in both relations. My question now is what tags to remain on that way: waterway, boundary or both?

permanent link

answered 07 Jul '13, 13:09

Plamen's gravatar image

Plamen
1516713
accept rate: 0%

Your answer
toggle preview

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:

×63
×52

question asked: 02 Sep '11, 20:59

question was seen: 12,411 times

last updated: 16 Jul '15, 10:41

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