From 8f602000f0cb5b9168fafecd18fe4b1ced798bb5 Mon Sep 17 00:00:00 2001 From: Oliver Wipfli Date: Thu, 7 Nov 2024 21:37:32 +0100 Subject: [PATCH] Use geoutils.tile_precision --- .../java/com/onthegomap/planetiler/util/LoopLineMerger.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/planetiler-core/src/main/java/com/onthegomap/planetiler/util/LoopLineMerger.java b/planetiler-core/src/main/java/com/onthegomap/planetiler/util/LoopLineMerger.java index 7ceaa4503b..eadfca57ff 100644 --- a/planetiler-core/src/main/java/com/onthegomap/planetiler/util/LoopLineMerger.java +++ b/planetiler-core/src/main/java/com/onthegomap/planetiler/util/LoopLineMerger.java @@ -1,13 +1,12 @@ package com.onthegomap.planetiler.util; +import com.onthegomap.planetiler.geo.GeoUtils; import java.util.ArrayList; import java.util.Comparator; import java.util.HashMap; import java.util.LinkedList; import java.util.List; import java.util.Map; -import java.util.Set; -import java.util.HashSet; import java.util.Queue; import org.locationtech.jts.geom.Coordinate; import org.locationtech.jts.geom.CoordinateXY; @@ -21,7 +20,7 @@ public class LoopLineMerger { private final List input = new ArrayList<>(); private final List output = new ArrayList<>(); int ids = 0; - private PrecisionModel precisionModel = new PrecisionModel(16); + private PrecisionModel precisionModel = new PrecisionModel(GeoUtils.TILE_PRECISION); private GeometryFactory factory = new GeometryFactory(precisionModel); private double minLength = 0.0; private double loopMinLength = 0.0;