Changeset 19467 in josm for trunk/resources/data/validator
- Timestamp:
- 2026-01-16T11:11:30+01:00 (2 days ago)
- Location:
- trunk/resources/data/validator
- Files:
-
- 5 edited
-
combinations.mapcss (modified) (2 diffs)
-
deprecated.mapcss (modified) (1 diff)
-
geometry.mapcss (modified) (2 diffs)
-
ignoretags.cfg (modified) (1 diff)
-
relation.mapcss (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/resources/data/validator/combinations.mapcss
r19440 r19467 307 307 node[power=transformer][voltage], 308 308 node[transformer=distribution][voltage][power=pole], 309 relation[power=circuit][wires], 310 relation[power=line_section][wires], 309 311 *[amenity=vending_machine][shop], 310 312 *[noname?][name], … … 1138 1140 assertNoMatch: "way highway=primary oneway=yes bicycle:lanes=no|designated|yes cycleway:lanes=|lane|no"; 1139 1141 } 1142 1143 /* Prevent redundancy between relation and members, see #24456, #24457 */ 1144 relation[power=circuit] > way[power=line][frequency], 1145 relation[power=circuit] > way[power=minor_line][frequency], 1146 relation[power=circuit] > way[power=cable][frequency] { 1147 throwWarning: tr("Frequency tag should be on the circuit relation only, not on the power segment"); 1148 group: tr("redundant tagging"); 1149 } 1150 relation[power=circuit] > relation[power=line_section][frequency] { 1151 throwWarning: tr("Frequency tag should be on the circuit relation only, not on the power section"); 1152 group: tr("redundant tagging"); 1153 } 1154 1155 /* Invalid topology with power circuit relation, see #24456 */ 1156 relation[power=circuit][topology][topology!~/^(linear|branched)$/] { 1157 throwError: tr("power=circuit relations should have a topology tag with value linear or branched"); 1158 assertMatch: "relation type=power power=circuit topology=branch"; 1159 assertNoMatch: "relation type=power power=circuit topology=branched"; -
trunk/resources/data/validator/deprecated.mapcss
r19222 r19467 2584 2584 } 2585 2585 2586 /* route=power is deprecated, see #24456 */ 2587 relation[route=power] { 2588 throwWarning: tr("{0} is deprecated", "{0.tag}"); 2589 group: tr("deprecated tagging"); 2590 suggestAlternative: "type=power + power=circuit"; 2591 } 2592 relation[power=branch] { 2593 throwWarning: tr("{0} is deprecated", "{0.tag}"); 2594 group: tr("deprecated tagging"); 2595 suggestAlternative: "type=power + power=line_section"; 2596 } 2597 2586 2598 /* When tags are deprecated they should be added to ignoretags.cfg too. */ -
trunk/resources/data/validator/geometry.mapcss
r19342 r19467 91 91 node[interval], 92 92 node[route], 93 node[restriction] { 93 node[restriction], 94 node[power=circuit], 95 node[power=line_section] { 94 96 throwError: tr("{0} on a node. Should be used in a relation", "{0.tag}"); 95 97 } … … 140 142 way[type=multipolygon], 141 143 way[interval][route!=ferry], 142 way[route=bus] { 144 way[route=bus], 145 way[power=circuit], 146 way[power=line_section] { 143 147 throwError: tr("{0} on a way. Should be used in a relation", "{0.tag}"); 144 148 } 145 149 146 150 /* {0} on a closed way, should be a unclosed way; #19981 */ 147 way:closed[power=line] { 151 way:closed[power=line], 152 way:closed[power=cable], 153 way:closed[power=minor_line] { 148 154 throwWarning: tr("{0} on a closed way. Should be used on an unclosed way.", "{1.tag}"); 149 155 } -
trunk/resources/data/validator/ignoretags.cfg
r19245 r19467 826 826 ; This seems to be a region specific tag. 827 827 K:valley=balka 828 K:route=power 829 K:power=branch 828 830 829 831 ; These tags should probably have better software support, but maybe they can be in the appropriate section in this file. -
trunk/resources/data/validator/relation.mapcss
r18369 r19467 72 72 group: tr("suspicious tag combination"); 73 73 } 74 75 /* Power relations, #24456 */ 76 relation[type=power][!power], 77 relation[type=power][power][power!~/^(circuit|line_section)$/] { 78 throwError: tr("Power relation misses or combined to wrong power=* value"); 79 assertMatch: "relation type=power"; 80 assertMatch: "relation type=power power=line"; 81 assertNoMatch: "relation type=power power=circuit"; 82 }
Note:
See TracChangeset
for help on using the changeset viewer.
