Skip to content
Snippets Groups Projects
Commit 7c791a70 authored by Thomas Kramer's avatar Thomas Kramer
Browse files

fix call to db.Region.insert(db.Box)

parent 82c48e1c
No related branches found
No related tags found
No related merge requests found
...@@ -54,7 +54,8 @@ def region_to_geometries(region: db.Region, f: float, use_rectangles_only: bool ...@@ -54,7 +54,8 @@ def region_to_geometries(region: db.Region, f: float, use_rectangles_only: bool
# Decompose into rectangles. # Decompose into rectangles.
boxes = _decompose_region(region) boxes = _decompose_region(region)
region = db.Region() region = db.Region()
region.insert(boxes) for box in boxes:
region.insert(box)
geometries = [] geometries = []
for p in region.each(): for p in region.each():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment