add test for bridge construction polygon

This commit is contained in:
Mike Barry
2022-02-04 07:40:19 -05:00
parent 99d723361b
commit 73738dc4a9

View File

@@ -446,8 +446,18 @@ public class TransportationTest extends AbstractLayerTest {
@Test @Test
public void testBridgeConstruction() { public void testBridgeConstruction() {
// https://www.openstreetmap.org/way/658335918 was returning class=bridge, should just ignore assertFeatures(14, List.of(), process(lineFeature(Map.of(
assertFeatures(13, List.of(), process(lineFeature(Map.of( "highway", "construction",
"construction", "bridge",
"man_made", "bridge",
"layer", "1"
))));
assertFeatures(14, List.of(Map.of(
"_layer", "transportation",
"class", "minor_construction",
"brunnel", "bridge",
"layer", 1L
)), process(closedWayFeature(Map.of(
"highway", "construction", "highway", "construction",
"construction", "bridge", "construction", "bridge",
"man_made", "bridge", "man_made", "bridge",