Ignore:
Timestamp:
2019-03-29T22:00:16+01:00 (19 months ago)
Author:
Klumbumbus
Message:
  • fix #17530 - warn about ele values with more than 2 decimal places
  • ignore healthcare=dentist for now
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.