TableQuerySublayerSource Class

  • TableQuerySublayerSource
  • class Esri::ArcGISRuntime::TableQuerySublayerSource

    Query table sublayer source is a layer/table that is defined by a SQL query. More...

    Header: #include <TableQuerySublayerSource.h>
    Since: Esri::ArcGISRuntime 100.1
    Inherits: Esri::ArcGISRuntime::SublayerSource

    Public Functions

    TableQuerySublayerSource(const QString &workspaceId, const QString &sqlQuery, const QStringList &objectIdFieldNames, QObject *parent = nullptr)
    virtual ~TableQuerySublayerSource() override
    Esri::ArcGISRuntime::GeometryType geometryType() const
    QStringList objectIdFieldNames() const
    void setGeometryType(Esri::ArcGISRuntime::GeometryType geometryType)
    void setSpatialReference(const Esri::ArcGISRuntime::SpatialReference &spatialReference)
    Esri::ArcGISRuntime::SpatialReference spatialReference() const
    QString sqlQuery() const
    QString workspaceId() const

    Detailed Description

    See also TableSublayerSource, TableJoinSublayerSource, RasterSublayerSource, MapSublayerSource, and SublayerSourceType::TableSublayerSource.

    Member Function Documentation

    TableQuerySublayerSource::TableQuerySublayerSource(const QString &workspaceId, const QString &sqlQuery, const QStringList &objectIdFieldNames, QObject *parent = nullptr)

    Creates a table query sublayer source.

    • workspaceId - The workspace ID.
    • sqlQuery - The SQL query.
    • objectIdFieldNames - The object ID field names as a QList of QString.
    • parent - The optional parent QObject.

    See also SublayerSource and ArcGISMapImageSublayer::source.

    [override virtual] TableQuerySublayerSource::~TableQuerySublayerSource()

    Destructor.

    Esri::ArcGISRuntime::GeometryType TableQuerySublayerSource::geometryType() const

    Returns the geometry type.

    GeometryType::Unknown if an error occurs or if the geometry type has not been set.

    See also setGeometryType().

    QStringList TableQuerySublayerSource::objectIdFieldNames() const

    Returns the list of ObjectID field names.

    void TableQuerySublayerSource::setGeometryType(Esri::ArcGISRuntime::GeometryType geometryType)

    Sets the geometryType to geometryType.

    See also geometryType.

    void TableQuerySublayerSource::setSpatialReference(const Esri::ArcGISRuntime::SpatialReference &spatialReference)

    Sets the spatialReference to spatialReference.

    See also spatialReference.

    Esri::ArcGISRuntime::SpatialReference TableQuerySublayerSource::spatialReference() const

    Returns the spatial reference.

    See also setSpatialReference().

    QString TableQuerySublayerSource::sqlQuery() const

    Returns the SQL query.

    QString TableQuerySublayerSource::workspaceId() const

    Returns the workspace ID.

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