Changeset 14830 in josm for trunk/data


Ignore:
Timestamp:
2019-03-04T21:02:29+01:00 (6 years ago)
Author:
Klumbumbus
Message:

fix #17402 - warn about leisure=nature_reserve on nodes

Location:
trunk/data
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/data/defaultpresets.xml

    r14829 r14830  
    67526752            <combo key="grassland" text="Type" values="pampas,prairie,puszta,savanna,steppe,veld" />
    67536753        </item> <!-- Grassland -->
    6754         <item name="Nature Reserve" icon="presets/leisure/nature_reserve.svg" type="node,closedway,multipolygon" preset_name_label="true">
     6754        <item name="Nature Reserve" icon="presets/leisure/nature_reserve.svg" type="closedway,multipolygon" preset_name_label="true">
    67556755            <link wiki="Tag:leisure=nature_reserve" />
    67566756            <space />
  • trunk/data/validator/combinations.mapcss

    r14818 r14830  
    547547  throwOther: tr("{0} together with {1}. Tag each hydrant separately.", "{0.tag}", "{1.tag}");
    548548}
     549
     550/* #12502 */
     551node[leisure=park][natural=tree] {
     552  throwWarning: tr("{0} together with {1} on a node. Remove {0}.", "{0.tag}", "{1.tag}");
     553  group: tr("suspicious tag combination");
     554  fixRemove: "leisure";
     555}
  • trunk/data/validator/geometry.mapcss

    r14712 r14830  
    5353}
    5454
    55 /* {0} on a node, should be an area; #10679 #16528 #16792 */
     55/* {0} on a node, should be an area; #10679 #16528 #16792 #12502 #17402*/
    5656node[golf=green],
    5757node[golf=bunker],
     
    7474node[natural=bare_rock],
    7575node[natural=glacier],
     76node[leisure=park][natural!=tree], /* For nodes with both tags another warning is created in combinations.mapcss */
     77node[leisure=nature_reserve],
    7678node[waterway=riverbank],
    7779node[man_made=bridge],
     
    146148  throwError: tr("Object at Position 0.00E 0.00N. There is nothing at this position except an already mapped weather buoy.");
    147149  fixDeleteObject: this;
    148 }
    149 
    150 /* #12502 */
    151 node[leisure=park][natural=tree] {
    152   throwWarning: tr("{0} together with {1} on a node. Remove {0}.", "{0.tag}", "{1.tag}");
    153   group: tr("suspicious tag combination");
    154   fixRemove: "leisure";
    155 }
    156 node[leisure=park][natural!=tree] {
    157   throwWarning: tr("{0} on a node. Should be drawn as an area.", "{0.tag}");
    158150}
    159151
Note: See TracChangeset for help on using the changeset viewer.