From 653ae6656f5eaa74b8e79e0beed205381a76005c Mon Sep 17 00:00:00 2001 From: Jan Caha Date: Tue, 12 Nov 2024 12:22:31 +0100 Subject: [PATCH] fix function --- los_tools/processing/tools/util_functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/los_tools/processing/tools/util_functions.py b/los_tools/processing/tools/util_functions.py index 05c4a57..1accb07 100644 --- a/los_tools/processing/tools/util_functions.py +++ b/los_tools/processing/tools/util_functions.py @@ -92,7 +92,7 @@ def check_existence_los_fields(field_names: List[str]) -> None: def wkt_to_array_points(wkt: str) -> List[List[float]]: - reg = re.compile("(LINESTRING |LineStringZ |MULTILINESTRING |MultiLineStringZ )") + reg = re.compile(r"(LineString\s?Z |LINESTRING |MULTILINESTRING |MultiLineString\s?Z )", re.IGNORECASE) wkt = reg.sub("", wkt)