From: Sarah Hoffmann Date: Sun, 16 Jun 2024 18:08:21 +0000 (+0200) Subject: ignore very long ways X-Git-Tag: deploy~6 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/28101967ef5b89b85f492304b1002b8a85e6fe21 ignore very long ways --- diff --git a/settings/flex-base.lua b/settings/flex-base.lua index 4d960d72..7860737f 100644 --- a/settings/flex-base.lua +++ b/settings/flex-base.lua @@ -227,7 +227,7 @@ function Place:write_row(k, v, save_extra_mains) 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 @@ -408,6 +408,9 @@ function module.process_way(object) if geom:is_null() then geom = o:as_linestring() + if not geom:is_null() and geom:length() > 30 then + return nil + end end return geom