Commit d04cf52a authored by Tomas Pettersson's avatar Tomas Pettersson 🏸

restored pickle

parent 2b0d555f
...@@ -23,11 +23,11 @@ def storetree(): ...@@ -23,11 +23,11 @@ def storetree():
sections = [] sections = []
for line in lines: for line in lines:
if len(section) == 1000: # if len(section) == 1000:
sections.append(LineString(section)) # sections.append(LineString(section))
section = [] # section = []
if '-999999' in line: if '-999999' in line:
if len(section) > 1: #this will skip some points where section will end with only one coord. Possibly create a line from previous section on ending point if len(section) > 0: #this will skip some points where section will end with only one coord. Possibly create a line from previous section on ending point
sections.append(LineString(section)) sections.append(LineString(section))
section = [] section = []
continue continue
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment