Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
stw
wt
exercisemodel
Commits
cba5dd25
Commit
cba5dd25
authored
Dec 13, 2017
by
Tomas Pettersson
🏸
Browse files
made point outlet bigger initially
parent
f797a6bb
Changes
2
Hide whitespace changes
Inline
Side-by-side
exercisemodel/__init__.py
View file @
cba5dd25
...
...
@@ -62,7 +62,7 @@ def writeStatus(status):
def
run
():
try
:
p
ri
n
t
(
"INITIAL"
)
w
rit
eStatus
(
"INITIAL"
)
strtree
=
STRtree
(
pickle
.
load
(
pkg_resources
.
resource_stream
(
__name__
,
'/'
.
join
((
'resources'
,
'strtree.pickle'
)))))
m
=
Model
()()
with
open
(
'input.json'
,
"r"
)
as
inputfile
:
...
...
exercisemodel/model.py
View file @
cba5dd25
...
...
@@ -93,7 +93,7 @@ class Model(object):
properties
=
{}
properties
[
'depth'
]
=
depth
if
(
geom
.
geom_type
==
'Point'
):
geom
=
geom
.
buffer
(
0.00
0
1
)
geom
=
geom
.
buffer
(
0.001
)
if
(
geom
.
geom_type
==
'LineString'
):
geom
=
geom
.
buffer
(
0.01
,
20
)
pArea
=
(
geom
.
area
)
/
3
...
...
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