mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
[processing] fix geometry by expression algorithm geometryless input
This commit is contained in:
parent
4e37f381de
commit
f1397f8439
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user