From cd14ef2b01ce68f64a037e7cd449a85cc20d3918 Mon Sep 17 00:00:00 2001 From: Kamil Raczycki Date: Tue, 24 Sep 2024 17:27:09 +0200 Subject: [PATCH] chore: add explicit geometry casting --- quackosm/pbf_file_reader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quackosm/pbf_file_reader.py b/quackosm/pbf_file_reader.py index 6a78785..ebe6e7b 100644 --- a/quackosm/pbf_file_reader.py +++ b/quackosm/pbf_file_reader.py @@ -2259,7 +2259,7 @@ def _save_parquet_file_with_geometry( f""" COPY ( SELECT - * EXCLUDE (geometry), ST_MakeValid(geometry) geometry + * EXCLUDE (geometry), ST_MakeValid(geometry::GEOMETRY) geometry FROM ({relation.sql_query()}) ) TO '{file_path}' ( FORMAT 'parquet',