Skip to content

Commit

Permalink
[processing] fix geometry by expression algorithm geometryless input
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn authored and nyalldawson committed Jun 12, 2018
1 parent 4e37f38 commit f1397f8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/plugins/processing/algs/qgis/GeometryByExpression.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
from qgis.core import (QgsWkbTypes,
QgsExpression,
QgsGeometry,
QgsProcessing,
QgsProcessingException,
QgsProcessingParameterBoolean,
QgsProcessingParameterEnum,
Expand Down Expand Up @@ -105,6 +106,9 @@ def prepareAlgorithm(self, parameters, context, feedback):
def outputWkbType(self, input_wkb_type):
return self.wkb_type

def inputLayerTypes(self):
return [QgsProcessing.TypeVector]

def sourceFlags(self):
return QgsProcessingFeatureSource.FlagSkipGeometryValidityChecks

Expand Down

0 comments on commit f1397f8

Please sign in to comment.