fix errors if there are no walls on a tile (or other geometry is empty)

This commit is contained in:
Laura Klünder 2017-11-10 17:41:47 +01:00
parent 9b6ff60b9c
commit a16336e9ae

View file

@ -216,6 +216,9 @@ class SVGEngine(RenderEngine):
altitude=None, height=None, shape_cache_key=None):
geometry = self.buffered_bbox.intersection(geometry.geom)
if geometry.is_empty:
return
if fill:
attribs = ' fill="'+(fill.color)+'"'
if fill.opacity: