18#ifndef QGSALGORITHMEXTRACTBYLOCATION_H
19#define QGSALGORITHMEXTRACTBYLOCATION_H
48 void addPredicateParameter();
49 Predicate reversePredicate( Predicate predicate )
const;
50 QStringList predicateOptionsList()
const;
55 long long mTargetFeatureCount = 0;
56 long long mIntersectFeatureCount = 0;
67class QgsSelectByLocationAlgorithm :
public QgsLocationBasedAlgorithm
70 QgsSelectByLocationAlgorithm() =
default;
71 void initAlgorithm(
const QVariantMap &configuration = QVariantMap() )
override;
73 QString svgIconPath()
const override {
return QgsApplication::iconPath( QStringLiteral(
"/algorithms/mAlgorithmSelectLocation.svg" ) ); }
74 QString name()
const override;
76 QString displayName()
const override;
77 QStringList tags()
const override;
78 QString group()
const override;
79 QString groupId()
const override;
80 QString shortHelpString()
const override;
81 QgsSelectByLocationAlgorithm *createInstance() const override
SIP_FACTORY;
90class QgsExtractByLocationAlgorithm : public QgsLocationBasedAlgorithm
93 QgsExtractByLocationAlgorithm() =
default;
94 void initAlgorithm(
const QVariantMap &configuration = QVariantMap() )
override;
95 QString name()
const override;
96 QString displayName()
const override;
97 QStringList tags()
const override;
98 QString group()
const override;
99 QString groupId()
const override;
100 QString shortHelpString()
const override;
101 QgsExtractByLocationAlgorithm *createInstance() const override
SIP_FACTORY;
QFlags< ProcessingAlgorithmFlag > ProcessingAlgorithmFlags
Flags indicating how and when an algorithm operates and should be exposed to users.
static QIcon getThemeIcon(const QString &name, const QColor &fillColor=QColor(), const QColor &strokeColor=QColor())
Helper to get a theme icon.
static QString iconPath(const QString &iconFile)
Returns path to the desired icon file.
This class represents a coordinate reference system (CRS).
An interface for objects which provide features via a getFeatures method.
The feature class encapsulates a single feature including its unique ID, geometry and a list of field...
Abstract base class for processing algorithms.
Contains information about the context in which a processing algorithm is executed.
Base class for providing feedback from a processing algorithm.
QSet< QgsFeatureId > QgsFeatureIds