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

When we check statistics of roles in all relations of a country (Planet dump), we see a big diversity of roles... And some of them not make sense. There are a list of valid roles? We can change by Overpass (mass edition) the invalid ones?


Example of Brazilian roles of (visible) relations that are members of relations:

 member_type |  n   
-------------|------
             | 2209
 subarea     |   96
 subbasin    |   56
 part        |   37
 route       |   33
 platform    |   22
 outer       |   11
 ...         | ...
 level_1     |    2
 riverbank   |    2
 stop        |    2
 land_area   |    1
 level_2     |    1
 main_stream |    1
 member      |    1
 perimeter   |    1

Example of Brazilian roles of (visible) ways that are members of relations:

           member_type           |   n    
---------------------------------+--------
 outer                           | 518757
                                 | 337283
 inner                           |  83125
 forward                         |  73637
 to                              |  50441
 from                            |  49544
 backward                        |   7231
 main_stream                     |   5210
 platform                        |   3259
 part                            |   2937
 outline                         |   1263
 via                             |    789
 link                            |    635
 ...                             |   ...
 Pokemon Go                      |      1
 Programa de Extensão            |      1
 Transporte público              |      1
 Volta                           |      1
 buildings                       |      1
 bus                             |      1
 conexão                         |      1
 edge                            |      1
 force                           |      1
 level_-?\d+                     |      1
 ouline                          |      1
 outlines                        |      1
 path                            |      1
 positive                        |      1
 ridge                           |      1
 shortcut                        |      1
 sim                             |      1
 stop:0                          |      1
 yes                             |      1

All are valid? "level_1", "level_-?\d+", "level_2", "Pokemon Go", accented values, etc.?

asked 02 Nov '18, 16:35

ppKrauss's gravatar image

ppKrauss
95192225
accept rate: 0%

edited 03 Nov '18, 12:19

1
  1. What is "valid" for you?

  2. Where do you want to "change by Overpass (mass edition)"? In the main, public OSM database or in your copy?

(02 Nov '18, 18:51) aseerel4c26 ♦

Hi @aseerel4c26, item 1: "valid" is not "so free", is something that make sense -- like inner and outer that are about topolody, an real information for map construction... I am looking for a standard/recommendation or good practice. Perhaps we can check a country like German and use it as reference model.

(03 Nov '18, 01:14) ppKrauss

About item 2 (of @aseerel4c26's comment), let's wait the answer to make decisions... Cited Overpass only to show possible impact, when we suppose "full free".

(03 Nov '18, 01:17) ppKrauss

You can look at the OpenStreetMap wiki to find out documented features, and see some common relations. Also TagInfo can help you to see which relations and tag combinations are common.

As for the other less-known or undocumented tags to describe, they are just that. They are not necessarily wrong. Although sometimes there might be typo, the others were added because the mapper(s) though that was the best way to describe the feature. There is no reason to remove or alter them on a large scale. You could ask each mapper to document them, or discuss with them whether there is a documented way to express the same, etc. But you will probably find this too time consuming.

So my advice is, to just ignore the values you are not intested in.

Marc Zoutendijk wrote a series of diary posts called "Improving the OSM map - why don’t we" on exactly those 1 off tags you find everywhere. Don't forget to read the comments, to find out other mappers ideas about this "problem".

permanent link

answered 03 Nov '18, 06:46

escada's gravatar image

escada
19.0k16166302
accept rate: 21%

Hi @escada, thanks all explanations! Is important to see, from experient mapper as you, an assertion "just ignore the values you are not interested in": confirming the "full free/no control" hypothesis for relation-roles... But what Wiki say as "free format text field" is not the same as "free semantic". So, you also showed the spirit of the thing (good links!).

(03 Nov '18, 08:23) ppKrauss

My only residual doubt is about specialized documentation (for role-values not for usual tag-values), can I start/complement something at Relation#Roles Wiki using your answer? There are something (you see?) with specialized comments about relation-role-values, that I can cite there? ... Or something about consistency between role-values and the tags of the pointed element?

(03 Nov '18, 08:24) ppKrauss

... Perhaps the main documentation is to consolidate in one place a summary of all reccomendations: a typical exception to the rule of thumb (full free/no control) is the explicit instruction for islands.

(03 Nov '18, 12:39) ppKrauss

Everybody is free to write wiki pages. Those pages (if not in your private space), are a community effort. So others might change and or discuss the content of what you write.

(04 Nov '18, 06:38) escada

For Portuguese readers...

A principal fonte de documentação parece ser a estatística de uso, e isso inclui a correlação entre a tag type do elemento apontado e a role utilizada, conforme destacado na ilustração abaixo ("sem papel" indica uso frequente de role vazia).

alt text

Fonte: taginfo.openstreetmap.org/relations.

permanent link

answered 03 Nov '18, 09:14

ppKrauss's gravatar image

ppKrauss
95192225
accept rate: 0%

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:

×236
×23
×11
×11
×4

question asked: 02 Nov '18, 16:35

question was seen: 2,311 times

last updated: 04 Nov '18, 06:38

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