Changeset 16295 in josm


Ignore:
Timestamp:
2020-04-14T06:56:46+02:00 (5 years ago)
Author:
GerdP
Message:

fix #18138: Validator rules for connectivity relations
18138.8.patch by Traaker_L with small modifications

  • new preset Lane Connectivity
  • new validator test ConnectivityRelations
Location:
trunk
Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/resources/data/defaultpresets.xml

    r16291 r16295  
    77577757            </roles>
    77587758        </item> <!-- Turn Restriction -->
     7759         <item name="Lane Connectivity" type="relation" preset_name_label="true" icon="presets/transport/way/relation_connectivity.svg">
     7760            <link wiki="Relation:connectivity" />
     7761            <space />
     7762            <key key="type" value="connectivity" />
     7763            <text key="connectivity" text="Lane Connectivity" />
     7764            <roles>
     7765                <role key="from" text="from way" requisite="required" count="1" type="way" />
     7766                <role key="via" text="via node or ways" requisite="required" type="way,node" />
     7767                <role key="to" text="to way" requisite="required" count="1" type="way" />
     7768            </roles>
     7769        </item> <!-- Lane Connectivity -->
    77597770        <item name="Enforcement" icon="presets/vehicle/restriction/speed_camera.svg" type="relation" preset_name_label="true">
    77607771            <link wiki="Relation:enforcement" />
  • trunk/src/org/openstreetmap/josm/data/validation/OsmValidator.java

    r16248 r16295  
    4343import org.openstreetmap.josm.data.validation.tests.Coastlines;
    4444import org.openstreetmap.josm.data.validation.tests.ConditionalKeys;
     45import org.openstreetmap.josm.data.validation.tests.ConnectivityRelations;
    4546import org.openstreetmap.josm.data.validation.tests.CrossingWays;
    4647import org.openstreetmap.josm.data.validation.tests.DuplicateNode;
     
    150151        RightAngleBuildingTest.class, // 3700 .. 3799
    151152        SharpAngles.class, // 3800 .. 3899
     153        ConnectivityRelations.class, // 3900 .. 3999
    152154    };
    153155
Note: See TracChangeset for help on using the changeset viewer.