Changeset 15105 in josm for trunk


Ignore:
Timestamp:
2019-05-22T07:59:30+02:00 (6 years ago)
Author:
GerdP
Message:

see #10391: replace * by area for the right selector with ∈

File:
1 edited

Legend:

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

    r15016 r15105  
    162162/* Building inside building (spatial test) */
    163163*[building][building!~/no|entrance/][any(tag("layer"),"0") = any(parent_tag("layer"),"0")] ∈
    164 *[building][building!~/no|entrance/] {
     164area[building][building!~/no|entrance/] {
    165165  throwWarning: tr("Building inside building");
    166166}
     
    182182
    183183/* see ticket #9311 */
    184 node[amenity=parking]["capacity:disabled" !~ /^(yes|[0-9]+)$/] ∈ *[amenity=parking] {
     184node[amenity=parking]["capacity:disabled" !~ /^(yes|[0-9]+)$/] ∈ area[amenity=parking] {
    185185  throwWarning: tr("{0} inside {1}", "amenity=parking", "amenity=parking");
    186186  group: tr("{0} inside {1}", "amenity", "amenity");
     
    197197
    198198/* see ticket:#9522 */
    199 node[tag("amenity") = parent_tag("amenity")] ∈ *[amenity][amenity != parking] {
     199node[tag("amenity") = parent_tag("amenity")] ∈ area[amenity][amenity != parking] {
    200200  throwWarning: tr("{0} inside {1}", concat("amenity=", tag("amenity")), concat("amenity=", tag("amenity")));
    201201  group: tr("{0} inside {1}", "amenity", "amenity");
    202202}
    203 node[tag("leisure") = parent_tag("leisure")] ∈ *[leisure] {
     203node[tag("leisure") = parent_tag("leisure")] ∈ area[leisure] {
    204204  throwWarning: tr("{0} inside {1}", concat("leisure=", tag("leisure")), concat("leisure=", tag("leisure")));
    205205  group: tr("{0} inside {1}", "leisure", "leisure");
    206206}
    207 node[tag("tourism") = parent_tag("tourism")] ∈ *[tourism] {
     207node[tag("tourism") = parent_tag("tourism")] ∈ area[tourism] {
    208208  throwWarning: tr("{0} inside {1}", concat("tourism=", tag("tourism")), concat("tourism=", tag("tourism")));
    209209  group: tr("{0} inside {1}", "tourism", "tourism");
    210210}
    211 node[tag("shop") = parent_tag("shop")] ∈ *[shop] {
     211node[tag("shop") = parent_tag("shop")] ∈ area[shop] {
    212212  throwWarning: tr("{0} inside {1}", concat("shop=", tag("shop")), concat("shop=", tag("shop")));
    213213  group: tr("{0} inside {1}", "shop", "shop");
    214214}
    215 node[tag("power") = parent_tag("power")] ∈ *[power] {
     215node[tag("power") = parent_tag("power")] ∈ area[power] {
    216216  throwWarning: tr("{0} inside {1}", concat("power=", tag("power")), concat("power=", tag("power")));
    217217  group: tr("{0} inside {1}", "power", "power");
Note: See TracChangeset for help on using the changeset viewer.