mirror of
https://github.com/cfpwastaken/planetiler-openmaptiles.git
synced 2026-02-04 20:41:09 +00:00
Fix oneway logic (#70)
This commit is contained in:
@@ -986,6 +986,15 @@ class TransportationTest extends AbstractLayerTest {
|
||||
testDoesNotMergeLinestrings(Map.of("class", "motorway", "oneway", -1), layer, 10, 14);
|
||||
}
|
||||
|
||||
@Test
|
||||
void testMergesDisconnectedRoadFeaturesUnlessOnewayLong() throws GeometryException {
|
||||
String layer = Transportation.LAYER_NAME;
|
||||
testMergesLinestrings(Map.of("class", "motorway", "oneway", 0L), layer, 10, 14);
|
||||
testMergesLinestrings(Map.of("class", "motorway"), layer, 10, 14);
|
||||
testDoesNotMergeLinestrings(Map.of("class", "motorway", "oneway", 1L), layer, 10, 14);
|
||||
testDoesNotMergeLinestrings(Map.of("class", "motorway", "oneway", -1L), layer, 10, 14);
|
||||
}
|
||||
|
||||
@Test
|
||||
void testLightRail() {
|
||||
assertFeatures(13, List.of(Map.of(
|
||||
|
||||
Reference in New Issue
Block a user