Changeset 17249 in josm


Ignore:
Timestamp:
2020-10-22T00:52:01+02:00 (4 years ago)
Author:
Klumbumbus
Message:

fix #19981 - Warn about closed power=line way

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/resources/data/validator/geometry.mapcss

    r17111 r17249  
    8787}
    8888
    89 /* {0} on a node, should be a relation; Error level; see #10252, #10769, #14288 */
     89/* {0} on a node, should be a relation; Error level; #10252, #10769, #14288 */
    9090node[type=multipolygon],
    9191node[interval],
     
    126126}
    127127
    128 /* {0} on a way, should be a relation; see #15642, #10252, #14288 */
     128/* {0} on a way, should be a relation; #15642, #10252, #14288 */
    129129way[restriction][restriction =~ /^(no_right_turn|no_left_turn|no_u_turn|no_straight_on|only_right_turn|only_left_turn|only_straight_on|no_entry|no_exit)$/],
    130130way[type=multipolygon],
     
    134134}
    135135
     136/* {0} on a closed way, should be a unclosed way; #19981 */
     137way:closed[power=line] {
     138  throwWarning: tr("{0} on a closed way. Should be used on an unclosed way.", "{1.tag}");
     139}
     140
    136141/* #14395, #17025, #19506 */
    137142way[highway][area!=yes][!tunnel][!covered] > node {
     
    159164}
    160165
    161 /* see ticket:#10125 */
     166/* #10125 */
    162167node[source:geometry] {
    163168  throwWarning: tr("{0} on a node", "{0.key}");
     
    198203}
    199204
    200 /* see ticket #9311 */
     205/* #9311 */
    201206node[amenity=parking]["capacity:disabled" !~ /^(yes|[0-9]+)$/] ∈ area[amenity=parking] {
    202207  throwWarning: tr("{0} inside {1}", "amenity=parking", "amenity=parking");
     
    204209}
    205210
    206 /* see ticket #9556 */
     211/* #9556 */
    207212area:closed:areaStyle[tag("natural") = parent_tag("natural")] ⧉ area:closed:areaStyle[natural] {
    208213  throwWarning: tr("Overlapping Identical Natural Areas");
     
    213218}
    214219
    215 /* see ticket:#9522 */
     220/* #9522 */
    216221node[tag("amenity") = parent_tag("amenity")] ∈ area[amenity][amenity != parking] {
    217222  throwWarning: tr("{0} inside {1}", concat("amenity=", tag("amenity")), concat("amenity=", tag("amenity")));
     
    235240}
    236241
    237 /* isolated nodes which should be part of a way, see #10825, #15478 */
     242/* isolated nodes which should be part of a way; #10825, #15478 */
    238243node:unconnected:in-downloaded-area[entrance],
    239244node:unconnected:in-downloaded-area[traffic_calming],
Note: See TracChangeset for help on using the changeset viewer.