Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sven Greiner
gis-praxis-2
Commits
9dbaa0f1
Commit
9dbaa0f1
authored
Dec 05, 2014
by
Sven Greiner
Browse files
Improve simplification performance
parent
7ed7b69e
Changes
1
Hide whitespace changes
Inline
Side-by-side
simplify.py
View file @
9dbaa0f1
...
...
@@ -172,7 +172,7 @@ if __name__ == "__main__":
shapename
=
"result.shp"
track
=
parseTrack
(
xml
.
dom
.
minidom
.
parse
(
gpxname
))
simplified
=
dp
(
copy
.
deepcopy
(
track
)
,
"distance"
,
"elevation"
,
5
)
simplified
=
copy
.
deepcopy
(
dp
(
track
,
"distance"
,
"elevation"
,
3
)
)
recalculateTrack
(
simplified
)
printTrack
(
simplified
)
...
...
Write
Preview
Supports
Markdown
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