Skip To Content ArcGIS for Developers Sign In Dashboard

TableQuerySublayerSource Class


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

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

Public Functions

TableQuerySublayerSource(const QString &workspaceId, const QString &sqlQuery, const QStringList &objectIdFieldNames, QObject *parent = nullptr)
GeometryType geometryType() const
QStringList objectIdFieldNames() const
void setGeometryType(GeometryType geometryType)
void setSpatialReference(const SpatialReference &spatialReference)
SpatialReference spatialReference() const
QString sqlQuery() const
QString workspaceId() const

Additional Inherited Members

Detailed Description

Sublayer source that is a layer/table defined by a SQL query.

Member Function Documentation

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

Constructor that accepts arguments that define the query.

  • workspaceId - The workspace ID.
  • sqlQuery - The SQL query.
  • objectIdFieldNames - The list of ObjectID field names.
  • parent - The parent object (optional, defaults to nullptr).



GeometryType TableQuerySublayerSource::geometryType() const

Returns the geometry type.

See also setGeometryType().

QStringList TableQuerySublayerSource::objectIdFieldNames() const

Returns the list of ObjectID field names.

void TableQuerySublayerSource::setGeometryType(GeometryType geometryType)

Sets the geometry type to geometryType.

See also geometryType().

void TableQuerySublayerSource::setSpatialReference(const SpatialReference &spatialReference)

Sets the spatial reference to spatialReference.

See also spatialReference().

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.

Feedback on this topic?