Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
exercisemodel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
stw
wt
exercisemodel
Commits
d04cf52a
Commit
d04cf52a
authored
Dec 14, 2017
by
Tomas Pettersson
🏸
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
restored pickle
parent
2b0d555f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
exercisemodel/__init__.py
exercisemodel/__init__.py
+4
-4
exercisemodel/resources/strtree.pickle
exercisemodel/resources/strtree.pickle
+0
-0
No files found.
exercisemodel/__init__.py
View file @
d04cf52a
...
...
@@ -23,11 +23,11 @@ def storetree():
sections
=
[]
for
line
in
lines
:
if
len
(
section
)
==
1000
:
sections
.
append
(
LineString
(
section
))
section
=
[]
#
if len(section) == 1000:
#
sections.append(LineString(section))
#
section = []
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
))
section
=
[]
continue
...
...
exercisemodel/resources/strtree.pickle
View file @
d04cf52a
No preview for this file type
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment