18#ifndef QGSALGORITHMEXTRACTBYLOCATION_H
19#define QGSALGORITHMEXTRACTBYLOCATION_H
50 void addPredicateParameter();
51 Predicate reversePredicate( Predicate predicate )
const;
52 QStringList predicateOptionsList()
const;
58 long long mTargetFeatureCount = 0;
59 long long mIntersectFeatureCount = 0;
72class QgsSelectByLocationAlgorithm :
public QgsLocationBasedAlgorithm
77 QgsSelectByLocationAlgorithm() =
default;
78 void initAlgorithm(
const QVariantMap &configuration = QVariantMap() )
override;
80 QString svgIconPath()
const override {
return QgsApplication::iconPath( QStringLiteral(
"/algorithms/mAlgorithmSelectLocation.svg" ) ); }
81 QString name()
const override;
82 Flags flags()
const override;
83 QString displayName()
const override;
84 QStringList tags()
const override;
85 QString group()
const override;
86 QString groupId()
const override;
87 QString shortHelpString()
const override;
88 QgsSelectByLocationAlgorithm *createInstance() const override
SIP_FACTORY;
92 QVariantMap processAlgorithm( const QVariantMap ¶meters,
99class QgsExtractByLocationAlgorithm : public QgsLocationBasedAlgorithm
104 QgsExtractByLocationAlgorithm() =
default;
105 void initAlgorithm(
const QVariantMap &configuration = QVariantMap() )
override;
106 QString name()
const override;
107 QString displayName()
const override;
108 QStringList tags()
const override;
109 QString group()
const override;
110 QString groupId()
const override;
111 QString shortHelpString()
const override;
112 QgsExtractByLocationAlgorithm *createInstance() const override
SIP_FACTORY;
116 QVariantMap processAlgorithm( const QVariantMap ¶meters,
118 bool prepareAlgorithm( const QVariantMap ¶meters,
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