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
5d33feb2
Commit
5d33feb2
authored
Dec 11, 2017
by
Tomas Pettersson
🏸
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
temporary removied displaced pointes
parent
443b3a21
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
exercisemodel/model.py
exercisemodel/model.py
+2
-2
No files found.
exercisemodel/model.py
View file @
5d33feb2
...
@@ -216,9 +216,9 @@ class Model(object):
...
@@ -216,9 +216,9 @@ class Model(object):
linestring
=
geometry
.
shape
(
exercisefeature
[
'geometry'
])
linestring
=
geometry
.
shape
(
exercisefeature
[
'geometry'
])
for
i
,
coord
in
enumerate
(
linestring
.
coords
):
for
i
,
coord
in
enumerate
(
linestring
.
coords
):
points
=
self
.
centerPoints
(
coord
,
mp
.
centroid
,
mp
.
geoms
)
points
=
self
.
centerPoints
(
coord
,
mp
.
centroid
,
mp
.
geoms
)
displacedpoints
=
self
.
displacePoints
(
points
)
#
displacedpoints = self.displacePoints(points)
# onlandpoints = self.onlandPoints(displacedpoints,strtree)
# onlandpoints = self.onlandPoints(displacedpoints,strtree)
mp
=
geometry
.
MultiPoint
(
displaced
points
)
mp
=
geometry
.
MultiPoint
(
points
)
level
=
[
0
]
*
len
(
mp
.
geoms
)
level
=
[
0
]
*
len
(
mp
.
geoms
)
category
=
[
2
]
*
len
(
mp
.
geoms
)
category
=
[
2
]
*
len
(
mp
.
geoms
)
properties
=
self
.
createProperties
((
i
+
2
),
time
[
i
],
mp
.
centroid
,
level
,
category
)
properties
=
self
.
createProperties
((
i
+
2
),
time
[
i
],
mp
.
centroid
,
level
,
category
)
...
...
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