kopia lustrzana https://github.com/onthegomap/planetiler
Handle highways with man_made=bridge (#66)
rodzic
e092586dfc
commit
de08cf9c28
|
@ -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) {
|
||||
|
|
|
@ -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(
|
||||
|
|
Ładowanie…
Reference in New Issue