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
63ca66a1
Commit
63ca66a1
authored
Nov 28, 2014
by
Sven Greiner
Browse files
Rename method
parent
9fd0485d
Changes
1
Hide whitespace changes
Inline
Side-by-side
simplify.py
View file @
63ca66a1
...
...
@@ -52,7 +52,7 @@ class Point:
#-------------------------------------------------------------------------------
def
recalculate
Pointlist
(
points
):
def
recalculate
Track
(
points
):
for
i
in
xrange
(
len
(
points
)):
point
=
points
[
i
]
if
i
>
0
:
...
...
@@ -75,7 +75,7 @@ def parseTrack(gpx):
if
i
>
0
:
point
.
distance
=
points
[
i
-
1
].
distance
+
point
.
distanceTo
(
points
[
i
-
1
])
points
.
append
(
point
)
recalculate
Pointlist
(
points
)
recalculate
Track
(
points
)
return
points
def
handleTrackpoint
(
tp
):
...
...
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