From bc756f48610d30aa1ac1be559cceeecaef8ca6cd Mon Sep 17 00:00:00 2001 From: Peter Hanecak Date: Tue, 12 Mar 2024 20:56:59 +0100 Subject: [PATCH 1/2] fixed handling of Baikonur border in Kazachstan --- src/main/java/org/openmaptiles/layers/Boundary.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/openmaptiles/layers/Boundary.java b/src/main/java/org/openmaptiles/layers/Boundary.java index a964cbc4..d9e3263a 100644 --- a/src/main/java/org/openmaptiles/layers/Boundary.java +++ b/src/main/java/org/openmaptiles/layers/Boundary.java @@ -179,7 +179,7 @@ record BoundaryInfo(int adminLevel, int minzoom, int maxzoom) {} BoundaryInfo info = switch (table) { case "ne_110m_admin_0_boundary_lines_land" -> new BoundaryInfo(2, 0, 0); case "ne_50m_admin_0_boundary_lines_land" -> new BoundaryInfo(2, 1, 3); - case "ne_10m_admin_0_boundary_lines_land" -> feature.hasTag("featurecla", "Lease Limit") ? null : + case "ne_10m_admin_0_boundary_lines_land" -> feature.hasTag("featurecla", "Lease limit") ? null : new BoundaryInfo(2, 4, 4); case "ne_10m_admin_1_states_provinces_lines" -> { Double minZoom = Parse.parseDoubleOrNull(feature.getTag("min_zoom")); From dcf66f3697cdb2634e414ef33c7d279f7d7c5c84 Mon Sep 17 00:00:00 2001 From: Peter Hanecak Date: Tue, 12 Mar 2024 20:58:12 +0100 Subject: [PATCH 2/2] fixed handling of Baikonur border in Kazachstan (2) --- src/test/java/org/openmaptiles/layers/BoundaryTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/org/openmaptiles/layers/BoundaryTest.java b/src/test/java/org/openmaptiles/layers/BoundaryTest.java index 63c03d59..4c38a69f 100644 --- a/src/test/java/org/openmaptiles/layers/BoundaryTest.java +++ b/src/test/java/org/openmaptiles/layers/BoundaryTest.java @@ -118,7 +118,7 @@ void testNaturalEarthCountryBoundaries() { assertFeatures(0, List.of(), process(SimpleFeature.create( newLineString(0, 0, 1, 1), Map.of( - "featurecla", "Lease Limit" + "featurecla", "Lease limit" ), OpenMapTilesProfile.NATURAL_EARTH_SOURCE, "ne_10m_admin_0_boundary_lines_land",