Opened 14 years ago

Last modified 12 years ago

#5218 closed defect

Validator does not know many relation-types — at Version 8

Reported by: skyper Owned by: team
Priority: normal Milestone:
Component: Core validator Version: latest
Keywords: unknown relation type Cc:

Description (last modified by simon04)

Validator does not know type=site, associatedStreet, TMC, bridge and other either common used or approved relations-types. Instead you get a warning about an unknown relation-type.

r3362 , o22065

cu skyper

Change History (8)

comment:1 by stoecker, 14 years ago

Actually JOSM startup page already tells you about that fact. You can help by providing new entries or the relation presets menu.

in reply to:  1 comment:2 by skyper, 14 years ago

Replying to stoecker:

Actually JOSM startup page already tells you about that fact. You can help by providing new entries or the relation presets menu.

The way the presets work in JOSM right now, I rather clone an existing relation or manually create the relation, which is much faster than using presets.

comment:3 by bundesrainer, 14 years ago

I also get a warning from the validator for type=waterway, altough this entry is recognized in the relation view and translated to "Gewässer".
How exactly can I provide new entries for the relation presets menu?

comment:4 by stoecker, 14 years ago

See data/defaultpresets.xml. At the beginning is the description, ad the end the relations. Basically you need to specify a block which contains the tags and one with the roles of a relation:

Example for multipolygon:

        <item name="Multipolygon" icon="presets/empty.png" type="relation">
            <link href="http://wiki.openstreetmap.org/wiki/Relation:multipolygon"
                  de.href="http://wiki.openstreetmap.org/wiki/DE:Relation:multipolygon"
                  fr.href="http://wiki.openstreetmap.org/wiki/FR:Relation:multipolygon" />
            <label text="Edit Multipolygon" />
            <key key="type" value="multipolygon" />
            <optional>
                <text key="name" text="Name" default="" delete_if_empty="true" />
            </optional>
            <roles>
                <role key="outer" text="outer segment" requisite="required" type="way" />
                <role key="inner" text="inner segment" requisite="optional" type="way" />
            </roles>
        </item>

BTW: What a type of relation should "type=waterway" be?

comment:5 by bundesrainer, 14 years ago

Thanks. The waterway relation type is for rivers, canals:
http://wiki.openstreetmap.org/wiki/Relations/Proposed/Waterway

Though still a proposal it is already used for many rivers:
http://wiki.openstreetmap.org/wiki/WikiProject_Germany/Gew%C3%A4sser

comment:6 by simon04, 13 years ago

Ticket #6080 (Relation type Enforcement is unknown but it's official) has been marked as a duplicate of this ticket.

Last edited 12 years ago by simon04 (previous) (diff)

comment:7 by simon04, 12 years ago

Ticket #7044 (Do not warn about relations with role=house as member of associatedStreet) has been marked as a duplicate of this ticket.

Last edited 12 years ago by simon04 (previous) (diff)

comment:8 by simon04, 12 years ago

Description: modified (diff)

type=network and type=associatedStreet have been added in r3544.

Note: See TracTickets for help on using tickets.