From 5fe82b9f953c6733106e26bb387d2d57bb96bb09 Mon Sep 17 00:00:00 2001 From: Pavel Samokha Date: Thu, 9 Nov 2023 11:09:33 +0200 Subject: [PATCH] Fix centroid calculation - don't revisit wrapping coordinate --- turfpy/__version__.py | 2 +- turfpy/measurement.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/turfpy/__version__.py b/turfpy/__version__.py index 29ccc53..4f8ca05 100644 --- a/turfpy/__version__.py +++ b/turfpy/__version__.py @@ -1,3 +1,3 @@ """Project version information.""" -__version__ = "0.0.7" +__version__ = "0.0.8" diff --git a/turfpy/measurement.py b/turfpy/measurement.py index 90746d4..efd801d 100644 --- a/turfpy/measurement.py +++ b/turfpy/measurement.py @@ -452,7 +452,7 @@ def _callback_coord_each( y_sum += coord[1] length += 1 - coord_each(geojson, _callback_coord_each) + coord_each(geojson, _callback_coord_each, True) point = Point((x_sum / length, y_sum / length)) return Feature(geometry=point, properties=properties if properties else {})