- working on a new type of database

This commit is contained in:
Marius Stanciu
2020-03-01 00:52:24 +02:00
committed by Marius
parent acc61d460b
commit 70d3895799
43 changed files with 1515 additions and 540 deletions

View File

@@ -135,7 +135,7 @@ def path2shapely(path, object_type, res=1.0):
try:
geo_element = Polygon(rings[0], rings[1:])
except Exception:
coords = list()
coords = []
for line in rings:
coords.append(line.coords[0])
coords.append(line.coords[1])
@@ -305,7 +305,7 @@ def getsvggeo(node, object_type, root=None):
root = node
kind = re.search('(?:\{.*\})?(.*)$', node.tag).group(1)
geo = list()
geo = []
# Recurse
if len(node) > 0: