Commit cba5dd25 authored by Tomas Pettersson's avatar Tomas Pettersson 🏸

made point outlet bigger initially

parent f797a6bb
...@@ -62,7 +62,7 @@ def writeStatus(status): ...@@ -62,7 +62,7 @@ def writeStatus(status):
def run(): def run():
try: try:
print("INITIAL") writeStatus("INITIAL")
strtree = STRtree(pickle.load(pkg_resources.resource_stream(__name__, '/'.join(('resources', 'strtree.pickle'))))) strtree = STRtree(pickle.load(pkg_resources.resource_stream(__name__, '/'.join(('resources', 'strtree.pickle')))))
m = Model()() m = Model()()
with open('input.json',"r") as inputfile: with open('input.json',"r") as inputfile:
......
...@@ -93,7 +93,7 @@ class Model(object): ...@@ -93,7 +93,7 @@ class Model(object):
properties = {} properties = {}
properties['depth'] = depth properties['depth'] = depth
if (geom.geom_type == 'Point'): if (geom.geom_type == 'Point'):
geom = geom.buffer(0.0001) geom = geom.buffer(0.001)
if (geom.geom_type == 'LineString'): if (geom.geom_type == 'LineString'):
geom = geom.buffer(0.01, 20) geom = geom.buffer(0.01, 20)
pArea = (geom.area)/3 pArea = (geom.area)/3
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment