X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/781e83ddc357cefe0242d8f8aa8e6ef6a963ccb6..HEAD:/settings/flex-base.lua 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