Commit 5d33feb2 authored by Tomas Pettersson's avatar Tomas Pettersson 🏸

temporary removied displaced pointes

parent 443b3a21
...@@ -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(displacedpoints) 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)
......
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