Fix service/man_made npe (#72)

This commit is contained in:
Michael Barry
2022-02-07 20:41:02 -05:00
committed by GitHub
parent 60c39b8d8a
commit 262d510fef
2 changed files with 19 additions and 1 deletions

View File

@@ -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(