From 54a298685add15d939efd10268a0f48a92c1436d Mon Sep 17 00:00:00 2001
From: Mateusz Konieczny <matkoniecz@gmail.com>
Date: Fri, 1 Jul 2022 13:33:14 +0200
Subject: [PATCH] complain about more incompatible surface and tractype
---
resources/data/validator/combinations.mapcss | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/resources/data/validator/combinations.mapcss b/resources/data/validator/combinations.mapcss
index a94e8f81a..93b9c05b9 100644
|
a
|
b
|
|
| 5 | 5 | way[surface=~/^(unpaved|compacted|gravel|fine_gravel|pebblestone|ground|earth|dirt|grass|sand|mud|ice|salt|snow|woodchips)$/] { /* without grass_paver as it is controversial */ |
| 6 | 6 | set unpaved_surface; |
| 7 | 7 | } |
| | 8 | way[surface=~/^(paved|asphalt|cobblestone|cobblestone:flattened|sett|concrete|concrete:plates|paving_stones|metal|wood|unhewn_cobblestone)$/] { |
| | 9 | set fully_paved_surface; |
| | 10 | } |
| 8 | 11 | |
| 9 | 12 | /* {0.key} without {1.key} (warning level) */ |
| 10 | 13 | way[junction ][!highway][junction!=yes][!area:highway], |
| … |
… |
node[highway=crossing][crossing=no],
|
| 326 | 329 | node[railway=crossing][crossing=no], |
| 327 | 330 | way[junction=yes][highway], |
| 328 | 331 | way[tracktype=grade1][surface].unpaved_surface, |
| 329 | | way[tracktype=grade2][surface][surface=~/^(sand|mud)$/], |
| | 332 | way[tracktype=grade2][surface][surface=~/^(sand|mud|ground|earth|dirt|grass|ice|salt|snow|woodchips)$/], |
| | 333 | way[tracktype=grade4][surface].fully_paved_surface, |
| | 334 | way[tracktype=grade5][surface].fully_paved_surface, |
| 330 | 335 | way[segregated][bicycle=no], |
| 331 | 336 | way[segregated][foot=no], |
| 332 | 337 | way[man_made=pipeline][tunnel=flooded] { |