Skip To Content ArcGIS for Developers Sign In Dashboard

FeatureCollectionTable Class

(Esri::ArcGISRuntime::FeatureCollectionTable)

An individual table that can be stored in a FeatureCollection. More...

Header: #include <FeatureCollectionTable>
Since: Esri::ArcGISRuntime 100.0
Inherits: FeatureTable and FeatureSet

Public Functions

FeatureCollectionTable(const QList<Field> &fields, Esri::ArcGISRuntime::GeometryType geometryType, const SpatialReference &spatialReference, QObject *parent = nullptr)
FeatureCollectionTable(const QList<Field> &fields, Esri::ArcGISRuntime::GeometryType geometryType, const SpatialReference &spatialReference, bool hasZ, bool hasM, QObject *parent = nullptr)
FeatureCollectionTable(const QList<GeoElement *> &geoElements, const QList<Field> &fields, QObject *parent = nullptr)
FeatureCollectionTable(FeatureSet *featureSet, QObject *parent = nullptr)
~FeatureCollectionTable()
ArcGISFeatureLayerInfo layerInfo()
Renderer *renderer() const
void setRenderer(Renderer *renderer)
void setSymbolOverride(Feature *feature, Symbol *symbol)
Symbol *symbolOverride(Feature *feature) const

Reimplemented Public Functions

virtual QList<Field> fields() const
virtual GeometryType geometryType() const
virtual FeatureIterator iterator() const
virtual SpatialReference spatialReference() const

Additional Inherited Members

Detailed Description

An individual table that can be stored in a FeatureCollection.

Represents an individual feature table in a FeatureCollection. It consists of a feature definition (table schema) and a set of features that match that feature definition. It offers support for overriding the renderer symbology on a per-feature basis.

To create a FeatureCollectionTable, specify the fields, geometry type, and spatial reference of features in this table. Or, create it from a list of GeoElements or features already existing in another FeatureSet (for example, a query result).

Member Function Documentation

FeatureCollectionTable::FeatureCollectionTable(const QList<Field> &fields, Esri::ArcGISRuntime::GeometryType geometryType, const SpatialReference &spatialReference, QObject *parent = nullptr)

Constructor that accepts a list of fields, geometryType, spatialReference and an optional parent.

FeatureCollectionTable::FeatureCollectionTable(const QList<Field> &fields, Esri::ArcGISRuntime::GeometryType geometryType, const SpatialReference &spatialReference, bool hasZ, bool hasM, QObject *parent = nullptr)

Constructor that accepts a list of fields, geometryType, spatialReference, hasZ, hasM and an optional parent.

FeatureCollectionTable::FeatureCollectionTable(const QList<GeoElement *> &geoElements, const QList<Field> &fields, QObject *parent = nullptr)

Constructor that accepts the list of geoElements, the list of fields and an optional parent.

FeatureCollectionTable::FeatureCollectionTable(FeatureSet *featureSet, QObject *parent = nullptr)

Constructor that accepts the FeatureSet (featureSet) and an optional parent.

FeatureCollectionTable::~FeatureCollectionTable()

Destructor.

[virtual] QList<Field> FeatureCollectionTable::fields() const

Reimplemented from FeatureSet::fields().

Returns a list of Field objects representing the fields in this FeatureCollectionTable.

[virtual] GeometryType FeatureCollectionTable::geometryType() const

Reimplemented from FeatureSet::geometryType().

Returns the type of geometry shared by all features in this FeatureCollectionTable.

[virtual] FeatureIterator FeatureCollectionTable::iterator() const

Reimplemented from FeatureSet::iterator().

Returns an iterator to iterate over the features in this FeatureCollectionTable.

ArcGISFeatureLayerInfo FeatureCollectionTable::layerInfo()

Gets the layer info of the FeatureCollectionTable.

Renderer *FeatureCollectionTable::renderer() const

Returns the renderer specifying how the features should be symbolized.

See also setRenderer().

void FeatureCollectionTable::setRenderer(Renderer *renderer)

Sets the renderer specifying how the features in this FeatureCollectionTable should be symbolized.

See also renderer().

void FeatureCollectionTable::setSymbolOverride(Feature *feature, Symbol *symbol)

Sets the symbol override for the given feature in the FeatureCollectionTable to symbol.

See also symbolOverride().

[virtual] SpatialReference FeatureCollectionTable::spatialReference() const

Reimplemented from FeatureSet::spatialReference().

Returns the spatial reference of the features in this FeatureCollectionTable.

Symbol *FeatureCollectionTable::symbolOverride(Feature *feature) const

Gets the symbol override for the given feature in the FeatureCollectionTable.

See also setSymbolOverride().


Feedback on this topic?