Skip To Content ArcGIS for Developers Sign In Dashboard

TableQuerySublayerSource Class

class Esri::ArcGISRuntime::TableQuerySublayerSource

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

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

This class was introduced in Esri::ArcGISRuntime 100.1.

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

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).

[override virtual] TableQuerySublayerSource::~TableQuerySublayerSource()

Destructor.

Esri::ArcGISRuntime::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(Esri::ArcGISRuntime::GeometryType geometryType)

Sets the geometry type to geometryType.

See also geometryType().

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

Sets the spatial reference 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.


Feedback on this topic?