Changeset 10538 in josm for trunk


Ignore:
Timestamp:
2016-07-16T21:47:40+02:00 (8 years ago)
Author:
Klumbumbus
Message:

fix #13138 - add warnings for water without natural=water and landuse=pond

Location:
trunk/data/validator
Files:
2 edited

Legend:

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

    r10537 r10538  
    392392  fixAdd: "unisex=yes";
    393393}
     394
     395/* #13138 */
     396area:closed[water][natural!=water][water!=intermittent] { /* water=intermittent is deprecated and has an own warning */
     397  throwWarning: tr("{0} without {1}", "{1.key}", "{2.tag}");
     398  fixAdd: "natural=water";
     399}
     400way!:closed[water][natural!=water][water!=intermittent] {
     401  throwWarning: tr("{0} without {1}", "{1.key}", "{2.tag}");
     402}
  • trunk/data/validator/deprecated.mapcss

    r10511 r10538  
    11*[barrier=wire_fence] {
    22  throwWarning: tr("{0} is deprecated", "{0.tag}");
     3  suggestAlternative: "barrier=fence + fence_type=chain_link";
    34  fixAdd: "barrier=fence";
    45  fixAdd: "fence_type=chain_link";
     
    869870  fixRemove: "tower";
    870871}
     872
     873/* #13138 */
     874area[landuse=pond] {
     875  throwWarning: tr("{0} is deprecated", "{0.tag}");
     876  suggestAlternative: "natural=water + water=pond";
     877  fixAdd: "natural=water";
     878  fixAdd: "water=pond";
     879  fixRemove: "landuse";
     880}
Note: See TracChangeset for help on using the changeset viewer.