FeatureFenceParameters Class

  • FeatureFenceParameters
  • class Esri::ArcGISRuntime::FeatureFenceParameters

    Geotrigger fence data created from features. More...

    Header: #include <FeatureFenceParameters>
    Since: Esri::ArcGISRuntime 100.12
    Inherits: Esri::ArcGISRuntime::FenceParameters

    This class was introduced in Esri::ArcGISRuntime 100.12.

    Public Functions

    FeatureFenceParameters(Esri::ArcGISRuntime::FeatureTable *featureTable, double bufferDistance, QObject *parent = nullptr)
    FeatureFenceParameters(Esri::ArcGISRuntime::FeatureTable *featureTable, QObject *parent = nullptr)
    virtual ~FeatureFenceParameters() override
    Esri::ArcGISRuntime::Geometry areaOfInterest() const
    Esri::ArcGISRuntime::FeatureTable *featureTable() const
    void setAreaOfInterest(const Esri::ArcGISRuntime::Geometry &areaOfInterest)
    void setWhereClause(const QString &whereClause)
    QString whereClause() const

    Detailed Description

    The features that create a FeatureFenceParameters provide a set of geometries (and attributes) that define targets for the Geotrigger. For example, if the condition is "notify me when my position comes within 50 meters of one of my areas of interest", the fence data are "my areas of interest" and each Feature is one area of interest.

    Create a FeatureFenceParameters using a FeatureTable. The features can have point, line, or polygon geometry. For points and lines, you must also supply a FenceParameters::bufferDistance. Each feature in the table represents a single fence.

    You can filter features using attributes or geometry by supplying a where clause. For example, you could further refine "my areas of interest" to be "my areas of interest that are open and are in California".

    Member Function Documentation

    FeatureFenceParameters::FeatureFenceParameters(Esri::ArcGISRuntime::FeatureTable *featureTable, double bufferDistance, QObject *parent = nullptr)

    Creates a FeatureFenceParameters using all of the features in the FeatureTable.

    FeatureFenceParameters::FeatureFenceParameters(Esri::ArcGISRuntime::FeatureTable *featureTable, QObject *parent = nullptr)

    Creates a FeatureFenceParameters using all of the features in the FeatureTable.

    [override virtual] FeatureFenceParameters::~FeatureFenceParameters()


    Esri::ArcGISRuntime::Geometry FeatureFenceParameters::areaOfInterest() const

    Returns the geometry that can be used to spatially filter fences.

    This needs to be either an Envelope or Polygon. Use this to define which features in the FeatureTable are to be used as fences by defining an area of interest. If this parameter is empty we will use the full extent of the feature table.

    See also setAreaOfInterest().

    Esri::ArcGISRuntime::FeatureTable *FeatureFenceParameters::featureTable() const

    Returns the FeatureTable that contains the features to use in the FeatureFenceParameters.

    void FeatureFenceParameters::setAreaOfInterest(const Esri::ArcGISRuntime::Geometry &areaOfInterest)

    Sets the areaOfInterest to areaOfInterest.

    See also areaOfInterest.

    void FeatureFenceParameters::setWhereClause(const QString &whereClause)

    Sets the whereClause to whereClause.

    See also whereClause.

    QString FeatureFenceParameters::whereClause() const

    Returns a where clause that defines the features from the FeatureTable to use as fences.

    The string that is used as the whereClause should follow standard SQL syntax similar to what is discussed in the document SQL reference for query expressions used in ArcGIS.

    See also setWhereClause().

    Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.