From 0cf636a80ce668e5c2a0d0000208f63a33315071 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Fri, 10 Jan 2025 13:55:43 +0100 Subject: [PATCH] ignore overly long ways during import --- lib-lua/themes/nominatim/init.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib-lua/themes/nominatim/init.lua b/lib-lua/themes/nominatim/init.lua index dacaaae8..fef86f91 100644 --- a/lib-lua/themes/nominatim/init.lua +++ b/lib-lua/themes/nominatim/init.lua @@ -425,7 +425,7 @@ function Place:write_row(k, v) if self.geometry == nil then self.geometry = self.geom_func(self.object) end - if self.geometry:is_null() then + if self.geometry == nil or self.geometry:is_null() then return 0 end @@ -608,6 +608,9 @@ function module.process_way(object) if geom:is_null() then geom = o:as_linestring() + if geom:is_null() or geom:length() > 30 then + return nil + end end return geom -- 2.39.5