18 #ifndef QGSALGORITHMEXTRACTBYLOCATION_H 19 #define QGSALGORITHMEXTRACTBYLOCATION_H 50 void addPredicateParameter();
51 Predicate reversePredicate( Predicate predicate )
const;
52 QStringList predicateOptionsList()
const;
60 class QgsSelectByLocationAlgorithm :
public QgsLocationBasedAlgorithm
65 QgsSelectByLocationAlgorithm() =
default;
66 void initAlgorithm(
const QVariantMap &configuration = QVariantMap() )
override;
68 QString svgIconPath()
const override {
return QgsApplication::iconPath( QStringLiteral(
"/algorithms/mAlgorithmSelectLocation.svg" ) ); }
69 QString name()
const override;
70 Flags flags()
const override;
71 QString displayName()
const override;
72 QStringList tags()
const override;
73 QString group()
const override;
74 QString groupId()
const override;
75 QString shortHelpString()
const override;
76 QgsSelectByLocationAlgorithm *createInstance()
const override SIP_FACTORY;
80 QVariantMap processAlgorithm(
const QVariantMap ¶meters,
88 class 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;
105 QVariantMap processAlgorithm(
const QVariantMap ¶meters,
112 #endif // QGSALGORITHMEXTRACTBYLOCATION_H Base class for providing feedback from a processing algorithm.
static QString iconPath(const QString &iconFile)
Returns path to the desired icon file.
static QIcon getThemeIcon(const QString &name)
Helper to get a theme icon.
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
Abstract base class for processing algorithms.
Base class for feedback objects to be used for cancelation of something running in a worker thread...
An interface for objects which provide features via a getFeatures method.
Contains information about the context in which a processing algorithm is executed.