Skip to content
Permalink
Browse files

[processing] include start point into service area convex hull

  • Loading branch information
alexbruy committed Dec 26, 2016
1 parent 567f920 commit 47e5a5fc19491e0fe07ac44618da3ec8e793179c
@@ -258,6 +258,11 @@ def processAlgorithm(self, progress):
feat['start'] = origPoint
writerPoints.addFeature(feat)

upperBoundary.append(startPoint)
lowerBoundary.append(startPoint)
geomUpper = QgsGeometry.fromMultiPoint(upperBoundary)
geomLower = QgsGeometry.fromMultiPoint(lowerBoundary)

geom = geomUpper.convexHull()
feat.setGeometry(geom)
feat['type'] = 'upper'
@@ -245,6 +245,11 @@ def processAlgorithm(self, progress):

del writer

upperBoundary.append(startPoint)
lowerBoundary.append(startPoint)
geomUpper = QgsGeometry.fromMultiPoint(upperBoundary)
geomLower = QgsGeometry.fromMultiPoint(lowerBoundary)

writer = self.getOutputFromName(
self.OUTPUT_POLYGON).getVectorWriter(
fields,

0 comments on commit 47e5a5f

Please sign in to comment.
You can’t perform that action at this time.