fix errors if there are no walls on a tile (or other geometry is empty)
This commit is contained in:
parent
9b6ff60b9c
commit
a16336e9ae
1 changed files with 3 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue