Skip to content

Commit

Permalink
make filter vertices algorithm accept point layers as input (fix qgis…
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Jan 29, 2024
1 parent 1fd3def commit 2f2d9f7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
7 changes: 0 additions & 7 deletions src/analysis/processing/qgsalgorithmfiltervertices.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,6 @@ QString QgsFilterVerticesAlgorithmBase::shortHelpString() const
"the resultant geometries created by this algorithm may no longer be valid." ).arg( componentString() );
}

QList<int> QgsFilterVerticesAlgorithmBase::inputLayerTypes() const
{
return QList<int>() << QgsProcessing::TypeVectorLine << QgsProcessing::TypeVectorPolygon;
}

void QgsFilterVerticesAlgorithmBase::initParameters( const QVariantMap & )
{
auto min = std::make_unique< QgsProcessingParameterNumber >( QStringLiteral( "MIN" ),
Expand Down Expand Up @@ -212,5 +207,3 @@ void QgsFilterVerticesByZ::filter( QgsGeometry &geometry, double min, double max
}

///@endcond


6 changes: 0 additions & 6 deletions src/analysis/processing/qgsalgorithmfiltervertices.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ class QgsFilterVerticesAlgorithmBase : public QgsProcessingFeatureBasedAlgorithm

QString group() const override final;
QString groupId() const override final;
QList<int> inputLayerTypes() const override final;
void initParameters( const QVariantMap &configuration = QVariantMap() ) override final;
QString shortHelpString() const override final;

Expand Down Expand Up @@ -78,10 +77,8 @@ class QgsFilterVerticesByM : public QgsFilterVerticesAlgorithmBase

QString componentString() const override;
void filter( QgsGeometry &geometry, double min, double max ) const override;

};


/**
* Filter vertices by Z value algorithm.
*/
Expand All @@ -103,9 +100,6 @@ class QgsFilterVerticesByZ : public QgsFilterVerticesAlgorithmBase
void filter( QgsGeometry &geometry, double min, double max ) const override;
};


///@endcond PRIVATE

#endif // QGSALGORITHMFILTERVERTICES_H


0 comments on commit 2f2d9f7

Please sign in to comment.