Changeset 11159 in josm for trunk


Ignore:
Timestamp:
2016-10-24T19:39:25+02:00 (8 years ago)
Author:
Klumbumbus
Message:

adjust sport=skiing validator warnings

Location:
trunk
Files:
3 edited

Legend:

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

    r11153 r11159  
    338338
    339339/* #9593, #11183, #12418, #12761 */
    340 *[sport][!building][!club][tourism != hotel][highway != raceway][leisure !~ /^(sports_centre|stadium|track|pitch|golf_course|water_park|swimming_pool|recreation_ground|ice_rink|horse_riding)$/][natural !~ /^(beach|bare_rock|cliff|peak|water)$/][amenity !~ /^(pub|restaurant|swimming_pool)$/][landuse !~ /^(recreation_ground|piste|farm|farmland)$/][barrier !~ /^(wall|retaining_wall)$/][!"piste:type"][shop!=sports] {
     340*[sport][sport!=skiing][!building][!club][tourism != hotel][highway != raceway][leisure !~ /^(sports_centre|stadium|track|pitch|golf_course|water_park|swimming_pool|recreation_ground|ice_rink|horse_riding)$/][natural !~ /^(beach|bare_rock|cliff|peak|water)$/][amenity !~ /^(pub|restaurant|swimming_pool)$/][landuse !~ /^(recreation_ground|piste|farm|farmland)$/][barrier !~ /^(wall|retaining_wall)$/][!"piste:type"][shop!=sports] {
    341341    throwWarning: tr("sport without physical feature");
    342342    group: tr("missing tag");
     
    344344    assertNoMatch: "node sport=tennis leisure=pitch";
    345345    assertNoMatch: "node sport=beachvolleyball natural=beach";
    346     assertNoMatch: "node sport=skiiing landuse=piste";
     346    assertNoMatch: "node sport=skiing"; /* skiing has deprecated warning */
    347347    assertNoMatch: "node sport=swimming tourism=hotel";
    348348    assertNoMatch: "node sport=10pin amenity=restaurant";
  • trunk/data/validator/deprecated.mapcss

    r11146 r11159  
    524524
    525525/* unclear definition, see #11183 */
    526 *[sport=skiing][!piste:type] {
     526*[sport=skiing] {
    527527  throwWarning: tr("Definition of {0} is unclear", "{0.tag}");
    528   suggestAlternative: {1.key};
     528  suggestAlternative: tr("{0} + {1} + {2}", "piste:type=*", "piste:difficulty=*", "piste:grooming=*");
     529  group: tr("deprecated tagging");
    529530}
    530531
  • trunk/src/org/openstreetmap/josm/data/validation/tests/UnclosedWays.java

    r11129 r11159  
    140140        new UnclosedWaysCheck(1103, "amenities", marktr("amenities type {0}")),
    141141        new UnclosedWaysCheck(1104, "sport",     marktr("sport type {0}"),
    142                 new HashSet<>(Arrays.asList("water_slide", "climbing"))),
     142                new HashSet<>(Arrays.asList("water_slide", "climbing", "skiing"))),
    143143        new UnclosedWaysCheck(1105, "tourism",   marktr("tourism type {0}"),
    144144                new HashSet<>(Arrays.asList("attraction", "artwork"))),
Note: See TracChangeset for help on using the changeset viewer.