From 13fad19258dc1e1ada5573161f5ac9c4ec07bfe0 Mon Sep 17 00:00:00 2001 From: JORGE Date: Fri, 7 Jun 2024 15:50:51 -0400 Subject: [PATCH] [TM-848] fix for multipolygons validation --- app/Validators/Extensions/Polygons/FeatureBounds.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Validators/Extensions/Polygons/FeatureBounds.php b/app/Validators/Extensions/Polygons/FeatureBounds.php index 4f8bca13c..678eefaa2 100644 --- a/app/Validators/Extensions/Polygons/FeatureBounds.php +++ b/app/Validators/Extensions/Polygons/FeatureBounds.php @@ -37,7 +37,7 @@ public static function geoJsonValid($geojson): bool return self::hasValidPolygonBounds(data_get($geojson, 'geometry.coordinates.0')); } elseif ($type === 'MultiPolygon') { foreach (data_get($geojson, 'geometry.coordinates') as $coordinates) { - if (! self::hasValidPolygonBounds($coordinates)) { + if (! self::hasValidPolygonBounds($coordinates[0])) { return false; } }