Skip to content
Permalink
Browse files

Also update other spatial join alg

  • Loading branch information
nyalldawson committed Sep 16, 2017
1 parent 1983d8f commit 085687d8f0fdf55d2f497047ba95080f383aae62
Showing with 10 additions and 4 deletions.
  1. +10 −4 python/plugins/processing/algs/qgis/SpatialJoinSummary.py
@@ -110,10 +110,16 @@ def initAlgorithm(self, config=None):
self.addParameter(QgsProcessingParameterFeatureSource(self.JOIN,
self.tr('Join layer'),
[QgsProcessing.TypeVectorAnyGeometry]))
self.addParameter(QgsProcessingParameterEnum(self.PREDICATE,
self.tr('Geometric predicate'),
options=[p[1] for p in self.predicates],
allowMultiple=True, defaultValue=[0]))
predicate = QgsProcessingParameterEnum(self.PREDICATE,
self.tr('Geometric predicate'),
options=[p[1] for p in self.predicates],
allowMultiple=True, defaultValue=[0])
predicate.setMetadata({
'widget_wrapper': {
'class': 'processing.gui.wrappers.EnumWidgetWrapper',
'useCheckBoxes': True,
'columns': 2}})
self.addParameter(predicate)
self.addParameter(QgsProcessingParameterField(self.JOIN_FIELDS,
self.tr('Fields to summarise (leave empty to use all fields)'),
parentLayerParameterName=self.JOIN,

0 comments on commit 085687d

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