kopia lustrzana https://github.com/onthegomap/planetiler
Fix service/man_made npe (#72)
rodzic
e3a47ad4b2
commit
a6b0072eca
|
@ -222,7 +222,7 @@ public class Transportation implements
|
|||
"highway", coalesce(highway, ""),
|
||||
"public_transport", coalesce(publicTransport, ""),
|
||||
"construction", coalesce(construction, "")
|
||||
), null) : manMade;
|
||||
), null) : isBridgeOrPier(manMade) ? manMade : null;
|
||||
}
|
||||
|
||||
static String highwaySubclass(String highwayClass, String publicTransport, String highway) {
|
||||
|
|
|
@ -497,6 +497,24 @@ public class TransportationTest extends AbstractLayerTest {
|
|||
))));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testIgnoreManMadeWhenNotBridgeOrPier() {
|
||||
// https://github.com/onthegomap/planetiler/issues/69
|
||||
assertFeatures(14, List.of(), process(lineFeature(Map.of(
|
||||
"man_made", "storage_tank",
|
||||
"service", "driveway"
|
||||
))));
|
||||
assertFeatures(14, List.of(), process(lineFeature(Map.of(
|
||||
"man_made", "courtyard",
|
||||
"service", "driveway"
|
||||
))));
|
||||
assertFeatures(14, List.of(), process(lineFeature(Map.of(
|
||||
"man_made", "courtyard",
|
||||
"service", "driveway",
|
||||
"name", "Named Driveway"
|
||||
))));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testRaceway() {
|
||||
assertFeatures(13, List.of(Map.of(
|
||||
|
|
Ładowanie…
Reference in New Issue