Handle highways with man_made=bridge (#66)

pull/68/head
Michael Barry 2022-02-04 07:22:31 -05:00 zatwierdzone przez GitHub
rodzic e092586dfc
commit de08cf9c28
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 12 dodań i 1 usunięć

Wyświetl plik

@ -222,7 +222,7 @@ public class Transportation implements
"highway", coalesce(highway, ""),
"public_transport", coalesce(publicTransport, ""),
"construction", coalesce(construction, "")
), manMade) : manMade;
), null) : manMade;
}
static String highwaySubclass(String highwayClass, String publicTransport, String highway) {

Wyświetl plik

@ -444,6 +444,17 @@ public class TransportationTest extends AbstractLayerTest {
))));
}
@Test
public void testBridgeConstruction() {
// https://www.openstreetmap.org/way/658335918 was returning class=bridge, should just ignore
assertFeatures(13, List.of(), process(lineFeature(Map.of(
"highway", "construction",
"construction", "bridge",
"man_made", "bridge",
"layer", "1"
))));
}
@Test
public void testRaceway() {
assertFeatures(13, List.of(Map.of(