Skip to content

Commit

Permalink
[feature] Adapted k-neighbour concave hull plugin as QGIS 3 algorithm
Browse files Browse the repository at this point in the history
Co-authored-by: Detlev Neumann <dneumann@geospatial-services.de>
  • Loading branch information
rudivs and detlevn committed Aug 15, 2018
1 parent 6fcc162 commit 52ccc43
Show file tree
Hide file tree
Showing 4 changed files with 716 additions and 2 deletions.
164 changes: 164 additions & 0 deletions images/themes/default/algorithms/mAlgorithmKNearestConcaveHull.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions python/plugins/processing/algs/qgis/ConcaveHull.py
Expand Up @@ -69,13 +69,13 @@ def initAlgorithm(self, config=None):
self.addParameter(QgsProcessingParameterBoolean(self.NO_MULTIGEOMETRY,
self.tr('Split multipart geometry into singleparts geometries'), defaultValue=False))

self.addParameter(QgsProcessingParameterFeatureSink(self.OUTPUT, self.tr('Concave hull'), type=QgsProcessing.TypeVectorPolygon))
self.addParameter(QgsProcessingParameterFeatureSink(self.OUTPUT, self.tr('Output layer'), type=QgsProcessing.TypeVectorPolygon))

def name(self):
return 'concavehull'

def displayName(self):
return self.tr('Concave hull')
return self.tr('Concave hull (using alpha shapes algorithm)')

def processAlgorithm(self, parameters, context, feedback):
layer = self.parameterAsSource(parameters, ConcaveHull.INPUT, context)
Expand Down

0 comments on commit 52ccc43

Please sign in to comment.