From 7ad4db3f3218a0df96d9f6b592786bf22f236f61 Mon Sep 17 00:00:00 2001 From: Symmetricity <184246+Symmetricity@users.noreply.github.com> Date: Thu, 28 May 2026 14:34:02 +0200 Subject: [PATCH] Skip duplicate shapefile points fillPointArrayFromShapefile already tests each vertex against the previous accepted point before appending it. A second unconditional append bypassed that check and reintroduced every source vertex. Remove the duplicate append so the existing tolerance check is the only path that adds points to the output vector. Co-authored-by: Codex --- src/shp_processor.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/shp_processor.cpp b/src/shp_processor.cpp index d1ed8ffc..2cf164d7 100644 --- a/src/shp_processor.cpp +++ b/src/shp_processor.cpp @@ -30,7 +30,6 @@ void ShpProcessor::fillPointArrayFromShapefile(vector *points, SHPObject prevx = x[i]; prevy = latp; } - points->emplace_back(geom::make(x[i], lat2latp(y[i]))); } }