From 1e082661e853bb4ec446fdf6e060e03f1ea5a936 Mon Sep 17 00:00:00 2001 From: Mike Barry Date: Mon, 13 Nov 2023 06:52:01 -0500 Subject: [PATCH] undo --- .../planetiler/PlanetilerTests.java | 29 ------------------- 1 file changed, 29 deletions(-) diff --git a/planetiler-core/src/test/java/com/onthegomap/planetiler/PlanetilerTests.java b/planetiler-core/src/test/java/com/onthegomap/planetiler/PlanetilerTests.java index 2659cfd3fe..f44ada3556 100644 --- a/planetiler-core/src/test/java/com/onthegomap/planetiler/PlanetilerTests.java +++ b/planetiler-core/src/test/java/com/onthegomap/planetiler/PlanetilerTests.java @@ -2434,35 +2434,6 @@ void testCentroidWithLineMinSize() throws Exception { ), results.tiles); } - @Test - void testAttributeMinSize() throws Exception { - List points = z14PixelRectangle(0, 40); - - var results = runWithReaderFeatures( - Map.of("threads", "1"), - List.of( - newReaderFeature(newLineString(points), Map.of()) - ), - (in, features) -> features.centroid("layer") - .setZoomRange(0, 14) - .setAttrWithMinPixelSizeBelowZoom("") - .setBufferPixels(0) - .setMinPixelSize(10) // should only show up z14 (40) z13 (20) and z12 (10) - ); - - assertEquals(Map.ofEntries( - newTileEntry(Z12_TILES / 2, Z12_TILES / 2, 12, List.of( - feature(newPoint(5, 1), Map.of()) - )), - newTileEntry(Z13_TILES / 2, Z13_TILES / 2, 13, List.of( - feature(newPoint(10, 2), Map.of()) - )), - newTileEntry(Z14_TILES / 2, Z14_TILES / 2, 14, List.of( - feature(newPoint(20, 4), Map.of()) - )) - ), results.tiles); - } - @Test void testBoundFiltersFill() throws Exception { var polyResultz8 = runForBoundsTest(8, 8, "polygon", TestUtils.pathToResource("bottomrightearth.poly").toString());