diff --git a/planetiler-core/src/main/java/com/onthegomap/planetiler/render/FeatureRenderer.java b/planetiler-core/src/main/java/com/onthegomap/planetiler/render/FeatureRenderer.java index f3c889b681..68606e8438 100644 --- a/planetiler-core/src/main/java/com/onthegomap/planetiler/render/FeatureRenderer.java +++ b/planetiler-core/src/main/java/com/onthegomap/planetiler/render/FeatureRenderer.java @@ -86,12 +86,9 @@ public void accept(FeatureCollector.Feature feature) { } else { if (minSize > 0) { if (geometry instanceof Puntal) { - if (!feature.source().isPoint()) { - double size = feature.getSourceFeaturePixelSizeAtZoom(zoom); - if (size < minSize) { - // don't emit points if the source feature it came from was too small - continue; - } + if (!feature.source().isPoint() && feature.getSourceFeaturePixelSizeAtZoom(zoom) < minSize) { + // don't emit points if the line or polygon feature it came from was too small + continue; } } else if (simpleLineLength >= 0 && simpleLineLength * scale * 256 < minSize) { // skip processing lines that are too short