- fixed an issue for importing DXF as Geometry when the DXF geometry is a single line

- updated the convert_any2geo() method such that resulting geometry objects have the tools attribute required in the newer versions of the app
This commit is contained in:
Marius Stanciu
2020-11-24 21:33:29 +02:00
committed by Marius Stanciu
parent ad5ae43ab4
commit 2545da79b5
6 changed files with 111 additions and 49 deletions

View File

@@ -1261,8 +1261,12 @@ class Geometry(object):
merged_lines = linemerge(geos_lines)
geos = geos_polys
for ml in merged_lines:
geos.append(ml)
try:
for ml in merged_lines:
geos.append(ml)
except TypeError:
geos.append(merged_lines)
# Add to object
if self.solid_geometry is None: