Ignore:
Timestamp:
2014-02-17T19:12:14+01:00 (6 years ago)
Author:
simon04
Message:

fix #9593 - Detect sports without physical features - MapCSS test by Don-vip

File:
1 edited

Legend:

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

    r6812 r6860  
    141141  throwWarning: tr("natural water used for swimming pool");
    142142}
     143
     144/* see ticket #9593 */
     145*[sport][tourism != hotel][leisure !~ /^(sports_centre|stadium|pitch|golf_course|water_park|swimming_pool)$/][natural !~ /^(beach|bare_rock)$/][amenity !~ /^(pub|restaurant|swimming_pool)$/][landuse !~ /^(recreation_ground|piste)$/] {
     146    throwWarning: tr("sport without physical feature");
     147    assertMatch: "node sport=tennis";
     148    assertNoMatch: "node sport=tennis leisure=pitch";
     149    assertNoMatch: "node sport=beachvolleyball natural=beach";
     150    assertNoMatch: "node sport=skiiing landuse=piste";
     151    assertNoMatch: "node sport=swimming tourism=hotel";
     152    assertNoMatch: "node sport=10pin amenity=restaurant";
     153}
Note: See TracChangeset for help on using the changeset viewer.