From: Sarah Hoffmann Date: Fri, 10 Jan 2025 12:55:43 +0000 (+0100) Subject: ignore overly long ways during import X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/0cf636a80ce668e5c2a0d0000208f63a33315071 ignore overly long ways during import --- 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