Changeset 14940 in josm


Ignore:
Timestamp:
2019-03-29T22:00:16+01:00 (6 years ago)
Author:
Klumbumbus
Message:
  • fix #17530 - warn about ele values with more than 2 decimal places
  • ignore healthcare=dentist for now
Location:
trunk/data/validator
Files:
3 edited

Legend:

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

    r14935 r14940  
    120120}
    121121
     122/* #17527 */
    122123*[shop=fashion] {
    123124  throwWarning: tr("{0} is deprecated", "{0.tag}");
  • trunk/data/validator/ignoretags.cfg

    r14921 r14940  
    365365;
    366366; Tags not yet decided (to remove from this section when added or deprecated)
    367 ; see josm tickets: 10759 15774 16315 16658 16793
     367; see josm tickets: 10759 15309 15774 16315 16658 16793
    368368;
    369369K:man_made=mast
     
    376376K:historic=citywalls
    377377K:crossing=zebra
     378K:healthcare=dentist
  • trunk/data/validator/numeric.mapcss

    r14728 r14940  
    345345}
    346346
     347/* #17530 */
     348*[ele][ele =~ /^-?[0-9]+\.[0-9][0-9][0-9]+$/] {
     349  throwWarning: tr("{0}", "{0.tag}");
     350  group: tr("Unnecessary amount of decimal places");
     351  fixAdd: concat("ele=", round(tag("ele")*100)/100);
     352  assertNoMatch: "node ele=12";
     353  assertNoMatch: "node ele=1.12";
     354  assertMatch: "node ele=12.123";
     355  assertMatch: "node ele=12.1234";
     356  assertMatch: "node ele=-12.6789";
     357  assertNoMatch: "node ele=12.123 m";
     358  assertNoMatch: "node ele=high";
     359}
     360
    347361/* #15774 */
    348362node[fire_hydrant:pressure="#"] {
Note: See TracChangeset for help on using the changeset viewer.