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
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