Skip to content
Permalink
Browse files

[processing] Fix output from Snap Geometries algorithms cannot

be plugged into algorithm inputs requiring a point or line geometry
type

Fixes #42200
  • Loading branch information
nyalldawson committed Mar 14, 2021
1 parent 6eeedbb commit 2978e4b7430c54abd5e7b176a66b6cc306e21929
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/analysis/processing/qgsalgorithmsnapgeometries.cpp
@@ -99,7 +99,7 @@ void QgsSnapGeometriesAlgorithm::initAlgorithm( const QVariantMap & )
<< QObject::tr( "Snap to anchor nodes (single layer only)" );
addParameter( new QgsProcessingParameterEnum( QStringLiteral( "BEHAVIOR" ), QObject::tr( "Behavior" ), options, false, QVariantList() << 0 ) );
addParameter( new QgsProcessingParameterFeatureSink( QStringLiteral( "OUTPUT" ),
QObject::tr( "Snapped geometry" ), QgsProcessing::TypeVectorPolygon ) );
QObject::tr( "Snapped geometry" ), QgsProcessing::TypeVectorAnyGeometry ) );
}

QgsSnapGeometriesAlgorithm *QgsSnapGeometriesAlgorithm::createInstance() const

0 comments on commit 2978e4b

Please sign in to comment.