Changeset 11600 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2017-02-22T23:41:08+01:00 (8 years ago)
Author:
Don-vip
Message:

fix #14402 - add whitelist for natural area values to avoid false positives

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/OsmPrimitive.java

    r11587 r11600  
    13531353     */
    13541354    public final boolean hasAreaTags() {
    1355         return hasKey("landuse")
     1355        return hasKey("landuse", "amenity", "leisure", "building", "building:part")
    13561356                || "yes".equals(get("area"))
    13571357                || "riverbank".equals(get("waterway"))
    1358                 || hasKey("natural", "amenity", "leisure", "building", "building:part");
     1358                || hasTag("natural", "water", "wood", "scrub", "wetland", "grassland", "heath", "rock", "bare_rock",
     1359                                     "sand", "beach", "scree", "bay", "glacier", "shingle", "fell", "reef", "stone",
     1360                                     "mud", "landslide", "sinkhole", "crevasse", "desert");
    13591361    }
    13601362
Note: See TracChangeset for help on using the changeset viewer.