Changeset 7737 in josm


Ignore:
Timestamp:
2014-11-19T23:10:12+01:00 (10 years ago)
Author:
Klumbumbus
Message:

Add validator warnings for linear waterway=* features on nodes. Deprecate waterway=water_point,waterway=waste_disposal and watermay=mooring in favor of amenity=water_point, amenity=waste_disposal and mooring=yes.

Location:
trunk
Files:
3 edited

Legend:

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

    r7707 r7737  
    344344  throwWarning: tr("{0}={1} is unspecific. Please replace ''{1}'' by ''left'', ''right'' or ''both''.", "{0.key}", "{0.value}");
    345345}
     346
     347*[waterway=water_point],
     348*[waterway=waste_disposal] {
     349  throwWarning: tr("{0} is deprecated", "{0.tag}");
     350  fixChangeKey: "waterway => amenity";
     351}
     352*[waterway=mooring] {
     353  throwWarning: tr("{0} is deprecated", "{0.tag}");
     354  fixRemove: "waterway";
     355  fixAdd: "mooring=yes";
     356}
  • trunk/data/validator/geometry.mapcss

    r7735 r7737  
    33node[bridge?],
    44node[sidewalk],
     5node[waterway=river],
     6node[waterway=riverbank],
     7node[waterway=canal],
     8node[waterway=wadi],
     9node[waterway=stream],
     10node[waterway=ditch],
    511node[natural=coastline],
    612node[natural=ridge],
  • trunk/styles/standard/elemstyles.mapcss

    r7735 r7737  
    22452245}
    22462246area[amenity=drinking_water],
     2247area[amenity=water_point],
    22472248area[amenity=fountain] {
    22482249    fill-color: light_water#00005f;
     
    22502251node[amenity=drinking_water] {
    22512252    icon-image: "food/drinking_water.png";
     2253    set icon_z17;
     2254    text: auto;
     2255}
     2256node[amenity=water_point] {
     2257    icon-image: "accommodation/camping/water.png";
    22522258    set icon_z17;
    22532259    text: auto;
     
    39173923    text: auto;
    39183924}
    3919 node[waterway=water_point] {
    3920     icon-image: "accommodation/camping/water.png";
    3921     set icon_z17;
    3922     text: auto;
    3923 }
    3924 node[waterway=waste_disposal] {
    3925     icon-image: "accommodation/camping/wastewater.png";
    3926     set icon_z17;
    3927     text: auto;
    3928 }
     3925node[waterway=water_point],
     3926node[waterway=waste_disposal],
    39293927node[waterway=mooring] {
     3928    icon-image: "misc/deprecated.png";
     3929    set icon_z17;
     3930    text: auto;
     3931}
     3932node[mooring] {
    39303933    icon-image: "nautical/marina.png";
    39313934    set icon_z17;
Note: See TracChangeset for help on using the changeset viewer.