18 #ifndef QGSALGORITHMEXTRACTBYLOCATION_H 19 #define QGSALGORITHMEXTRACTBYLOCATION_H 49 void addPredicateParameter();
50 Predicate reversePredicate( Predicate predicate )
const;
51 QStringList predicateOptionsList()
const;
59 class QgsSelectByLocationAlgorithm :
public QgsLocationBasedAlgorithm
64 QgsSelectByLocationAlgorithm() =
default;
65 void initAlgorithm(
const QVariantMap &configuration = QVariantMap() )
override;
67 QString svgIconPath()
const override {
return QgsApplication::iconPath( QStringLiteral(
"/algorithms/mAlgorithmSelectLocation.svg" ) ); }
68 QString name()
const override;
69 Flags flags()
const override;
70 QString displayName()
const override;
71 QStringList tags()
const override;
72 QString group()
const override;
73 QString groupId()
const override;
74 QString shortHelpString()
const override;
75 QgsSelectByLocationAlgorithm *createInstance()
const override SIP_FACTORY;
79 QVariantMap processAlgorithm(
const QVariantMap ¶meters,
87 class QgsExtractByLocationAlgorithm :
public QgsLocationBasedAlgorithm
92 QgsExtractByLocationAlgorithm() =
default;
93 void initAlgorithm(
const QVariantMap &configuration = QVariantMap() )
override;
94 QString name()
const override;
95 QString displayName()
const override;
96 QStringList tags()
const override;
97 QString group()
const override;
98 QString groupId()
const override;
99 QString shortHelpString()
const override;
100 QgsExtractByLocationAlgorithm *createInstance()
const override SIP_FACTORY;
104 QVariantMap processAlgorithm(
const QVariantMap ¶meters,
111 #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.