From be4443a75094df66acc180f0955594985044b0a4 Mon Sep 17 00:00:00 2001 From: ArnabChatterjee20k Date: Tue, 28 Oct 2025 09:26:27 +0530 Subject: [PATCH 1/2] added parser for the spatial types --- src/Migration/Sources/CSV.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Migration/Sources/CSV.php b/src/Migration/Sources/CSV.php index 3c521f34..959e0f1d 100644 --- a/src/Migration/Sources/CSV.php +++ b/src/Migration/Sources/CSV.php @@ -298,6 +298,9 @@ private function exportRows(int $batchSize): void filter: FILTER_VALIDATE_BOOLEAN, options: FILTER_NULL_ON_FAILURE ), + Column::TYPE_POINT, + Column::TYPE_LINE, + COLUMN::TYPE_POLYGON => \is_string($parsedValue) ? json_decode($parsedValue) : null, default => $parsedValue, }, }; From 974d3529aca2f88380420f9677a61c776bb0759a Mon Sep 17 00:00:00 2001 From: ArnabChatterjee20k Date: Tue, 28 Oct 2025 09:30:21 +0530 Subject: [PATCH 2/2] updated polygon class --- src/Migration/Sources/CSV.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Migration/Sources/CSV.php b/src/Migration/Sources/CSV.php index 959e0f1d..a6ca0c2d 100644 --- a/src/Migration/Sources/CSV.php +++ b/src/Migration/Sources/CSV.php @@ -300,7 +300,7 @@ private function exportRows(int $batchSize): void ), Column::TYPE_POINT, Column::TYPE_LINE, - COLUMN::TYPE_POLYGON => \is_string($parsedValue) ? json_decode($parsedValue) : null, + Column::TYPE_POLYGON => \is_string($parsedValue) ? json_decode($parsedValue) : null, default => $parsedValue, }, };