utils.svg: skip LineStrings with no fill set
This commit is contained in:
parent
619ccab617
commit
554b36d22f
1 changed files with 2 additions and 1 deletions
|
@ -245,7 +245,8 @@ class SVGImage:
|
|||
try:
|
||||
geometry.geoms
|
||||
except AttributeError:
|
||||
pass
|
||||
if not hasattr(geometry, 'exterior'):
|
||||
return
|
||||
else:
|
||||
geometry = type(geometry)(tuple(geom for geom in geometry.geoms if hasattr(geom, 'exterior')))
|
||||
if geometry.is_empty:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue