Changeset 7222 in josm for trunk/data/validator


Ignore:
Timestamp:
2014-06-08T16:13:54+02:00 (10 years ago)
Author:
Don-vip
Message:

fix #10107, fix #10108 - use of new leaf_type and leaf_cycle keys in presets, deprecate old wood and type values in validator

File:
1 edited

Legend:

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

    r7197 r7222  
    217217}
    218218
     219/* see #10107, #10108 - http://wiki.openstreetmap.org/wiki/Proposed_features/leaftype#Features.2FPages_affected */
     220*[wood=deciduous],
     221*[type=broad_leaved],
     222*[type=broad_leafed] {
     223  throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
     224  fixRemove: "{0.key}";
     225  fixAdd: "leaf_type=broadleaved";
     226}
     227
     228*[wood=coniferous] {
     229  throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
     230  fixRemove: "wood";
     231  fixAdd: "leaf_type=needleleaved";
     232}
     233
     234*[wood=mixed] {
     235  throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
     236  fixRemove: "wood";
     237  fixAdd: "leaf_type=mixed";
     238}
     239
     240*[wood=evergreen],
     241*[type=evergreen] {
     242  throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
     243  fixRemove: "{0.key}";
     244  fixAdd: "leaf_cycle=evergreen";
     245}
     246
     247*[type=deciduous],
     248*[type=deciduos] {
     249  throwWarning: tr("{0}={1} is deprecated", "{0.key}", "{0.value}");
     250  fixRemove: "type";
     251  fixAdd: "leaf_cycle=deciduous";
     252}
Note: See TracChangeset for help on using the changeset viewer.