A feature collection table represents an individual feature table in a FeatureCollection. More...
Detailed DescriptionA FeatureCollectionTable consists of a feature definition (table schema) and a set of features that match that feature definition. You can obtain a FeatureCollectionTable from an existing FeatureCollection::tables collection or you can create a new FeatureCollectionTable programmatically in your app.
To create a new FeatureCollectionTable, you can use a constructor that defines a set of fields, the geometry type, and spatial reference, and then populate it by adding new features. Alternatively, you can create a new FeatureCollectionTable from a FeatureSet, such as the FeatureQueryResult returned from a FeatureTable::queryFeaturesAsync(const Esri::ArcGISRuntime::QueryParameters&, QObject*).
To render the features in a map or scene, add the FeatureCollectionTable to a FeatureCollection::tables collection, construct a FeatureCollectionLayer from the FeatureCollection, and add it to the map or scene's collection of operational layers. To specify the FeatureCollectionTable symbology, just apply a renderer to the renderer. If required, you can override this symbology on a per-feature basis using the setSymbolOverride(Esri::ArcGISRuntime::Feature*, Esri::ArcGISRuntime::Symbol*).
Relevant samples:
[explicit]
FeatureCollectionTable::FeatureCollectionTable(Esri::ArcGISRuntime::FeatureSet *featureSet, QObject *parent = nullptr)
Creates a FeatureCollectionTable populated from the specified FeatureSet.
The FeatureCollectionTable will be populated with the contents of the FeatureSet. Note that this constructor may take some time to complete depending on how many features are in the feature set.
FeatureCollectionTable::FeatureCollectionTable(const QList<Esri::ArcGISRuntime::GeoElement *> &geoElements, const QList<Esri::ArcGISRuntime::Field> &fields, QObject *parent = nullptr)Creates a FeatureCollectionTable populated from the specified GeoElement collection.
The geometry type and spatial reference will be inferred from the geo-elements passed in. Note that this constructor may take some time to complete depending on how many geo-elements are passed in.
FeatureCollectionTable::FeatureCollectionTable(const QList<Esri::ArcGISRuntime::Field> &fields, Esri::ArcGISRuntime::GeometryType geometryType, const Esri::ArcGISRuntime::SpatialReference &spatialReference, QObject *parent = nullptr)Creates an empty FeatureCollectionTable from the specified fields, geometry type and spatial reference.
Creates an empty FeatureCollectionTable from the specified fields, geometry type, spatial reference. The table can contain z and m values.
[override virtual noexcept]
FeatureCollectionTable::~FeatureCollectionTable()
Destructor.
[override virtual]
QList<Esri::ArcGISRuntime::Field> FeatureCollectionTable::fields() const
Reimplements: FeatureSet::fields() const.
Returns a list of Field objects representing the fields in this FeatureCollectionTable.
[override virtual]
Esri::ArcGISRuntime::GeometryType FeatureCollectionTable::geometryType() const
Reimplements: FeatureSet::geometryType() const.
Returns the type of geometry shared by all features in this FeatureCollectionTable.
[override virtual]
Esri::ArcGISRuntime::FeatureIterator FeatureCollectionTable::iterator() const
Reimplements: FeatureSet::iterator() const.
Returns an iterator to iterate over the features in this FeatureCollectionTable.
Esri::ArcGISRuntime::ArcGISFeatureLayerInfo FeatureCollectionTable::layerInfo()Gets the layer info of the FeatureCollectionTable.
Esri::ArcGISRuntime::Renderer *FeatureCollectionTable::renderer() constReturns the renderer specifying how the features should be symbolized.
See also setRenderer().
[since Esri::ArcGISRuntime 200.7]
void FeatureCollectionTable::setPopupDefinitionOverride(Esri::ArcGISRuntime::Feature *feature, Esri::ArcGISRuntime::PopupDefinition *popupDefinition)
Sets the popup definition override for the given feature in the feature collection table.
nullptr
.If a Popup is created from a call to an identify method that returns popups, such as GeoView::identifyLayerAsync(Esri::ArcGISRuntime::Layer*, const QPointF&, double, bool, QObject*), then the Popup::popupDefinition will be the overridden definition if the feature originates from a feature collection.
This function was introduced in Esri::ArcGISRuntime 200.7.
See also Esri::ArcGISRuntime::FeatureTable::popupDefinition.
void FeatureCollectionTable::setRenderer(Esri::ArcGISRuntime::Renderer *renderer)Sets the renderer specifying how the features in this FeatureCollectionTable should be symbolized.
See also renderer().
void FeatureCollectionTable::setSymbolOverride(Esri::ArcGISRuntime::Feature *feature, Esri::ArcGISRuntime::Symbol *symbol)Sets the symbol override for the given feature in the FeatureCollectionTable to symbol.
See also symbolOverride().
[override virtual]
Esri::ArcGISRuntime::SpatialReference FeatureCollectionTable::spatialReference() const
Reimplements: FeatureSet::spatialReference() const.
Returns the spatial reference of the features in this FeatureCollectionTable.
Esri::ArcGISRuntime::Symbol *FeatureCollectionTable::symbolOverride(Esri::ArcGISRuntime::Feature *feature) constGets the symbol override for the given feature in the FeatureCollectionTable.
See also setSymbolOverride().
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4