[processing] fix geometry by expression algorithm geometryless input

This commit is contained in:
nirvn 2018-06-12 15:26:29 +07:00 committed by Nyall Dawson
parent 4e37f381de
commit f1397f8439

View File

@ -28,6 +28,7 @@ __revision__ = '$Format:%H$'
from qgis.core import (QgsWkbTypes,
QgsExpression,
QgsGeometry,
QgsProcessing,
QgsProcessingException,
QgsProcessingParameterBoolean,
QgsProcessingParameterEnum,
@ -105,6 +106,9 @@ class GeometryByExpression(QgisFeatureBasedAlgorithm):
def outputWkbType(self, input_wkb_type):
return self.wkb_type
def inputLayerTypes(self):
return [QgsProcessing.TypeVector]
def sourceFlags(self):
return QgsProcessingFeatureSource.FlagSkipGeometryValidityChecks