- Timestamp:
- 2019-05-22T07:59:30+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/data/validator/geometry.mapcss
r15016 r15105 162 162 /* Building inside building (spatial test) */ 163 163 *[building][building!~/no|entrance/][any(tag("layer"),"0") = any(parent_tag("layer"),"0")] ∈ 164 *[building][building!~/no|entrance/] {164 area[building][building!~/no|entrance/] { 165 165 throwWarning: tr("Building inside building"); 166 166 } … … 182 182 183 183 /* see ticket #9311 */ 184 node[amenity=parking]["capacity:disabled" !~ /^(yes|[0-9]+)$/] ∈ *[amenity=parking] {184 node[amenity=parking]["capacity:disabled" !~ /^(yes|[0-9]+)$/] ∈ area[amenity=parking] { 185 185 throwWarning: tr("{0} inside {1}", "amenity=parking", "amenity=parking"); 186 186 group: tr("{0} inside {1}", "amenity", "amenity"); … … 197 197 198 198 /* see ticket:#9522 */ 199 node[tag("amenity") = parent_tag("amenity")] ∈ *[amenity][amenity != parking] {199 node[tag("amenity") = parent_tag("amenity")] ∈ area[amenity][amenity != parking] { 200 200 throwWarning: tr("{0} inside {1}", concat("amenity=", tag("amenity")), concat("amenity=", tag("amenity"))); 201 201 group: tr("{0} inside {1}", "amenity", "amenity"); 202 202 } 203 node[tag("leisure") = parent_tag("leisure")] ∈ *[leisure] {203 node[tag("leisure") = parent_tag("leisure")] ∈ area[leisure] { 204 204 throwWarning: tr("{0} inside {1}", concat("leisure=", tag("leisure")), concat("leisure=", tag("leisure"))); 205 205 group: tr("{0} inside {1}", "leisure", "leisure"); 206 206 } 207 node[tag("tourism") = parent_tag("tourism")] ∈ *[tourism] {207 node[tag("tourism") = parent_tag("tourism")] ∈ area[tourism] { 208 208 throwWarning: tr("{0} inside {1}", concat("tourism=", tag("tourism")), concat("tourism=", tag("tourism"))); 209 209 group: tr("{0} inside {1}", "tourism", "tourism"); 210 210 } 211 node[tag("shop") = parent_tag("shop")] ∈ *[shop] {211 node[tag("shop") = parent_tag("shop")] ∈ area[shop] { 212 212 throwWarning: tr("{0} inside {1}", concat("shop=", tag("shop")), concat("shop=", tag("shop"))); 213 213 group: tr("{0} inside {1}", "shop", "shop"); 214 214 } 215 node[tag("power") = parent_tag("power")] ∈ *[power] {215 node[tag("power") = parent_tag("power")] ∈ area[power] { 216 216 throwWarning: tr("{0} inside {1}", concat("power=", tag("power")), concat("power=", tag("power"))); 217 217 group: tr("{0} inside {1}", "power", "power");
Note:
See TracChangeset
for help on using the changeset viewer.