Fix error processing way (#87)

This commit is contained in:
Michael Barry
2023-04-14 05:55:09 -04:00
committed by GitHub
parent d96c612841
commit 6317d82ec9
3 changed files with 43 additions and 1 deletions

View File

@@ -1280,4 +1280,39 @@ class TransportationTest extends AbstractLayerTest {
"class", "path"
)), collector);
}
@Test
void testIssue86() {
assertFeatures(14, List.of(Map.of(
"_layer", "transportation",
"class", "bridge",
"_minzoom", 13,
"_type", "polygon"
)), process(closedWayFeature(Map.of(
"layer", "1",
"man_made", "bridge",
"service", "driveway"
))));
assertFeatures(14, List.of(Map.of(
"_layer", "transportation",
"class", "bridge",
"_minzoom", 13,
"_type", "polygon"
)), process(closedWayFeature(Map.of(
"layer", "1",
"man_made", "bridge",
"service", "driveway",
"name", "name"
))));
assertFeatures(14, List.of(Map.of(
"_layer", "transportation",
"class", "pier",
"_minzoom", 13,
"_type", "polygon"
)), process(closedWayFeature(Map.of(
"layer", "1",
"man_made", "pier",
"service", "driveway"
))));
}
}