Metadata for a DynamicEntityDataSource. More...
| Header | #include <Dynamic |
| Since | Esri |
| Inherits | Esri |
Public Functions
| Dynamic | |
| virtual | ~ |
| QString | description() const |
| QString | entity |
| QList | fields() const |
| Esri | full |
| void | set |
| void | set |
| void | set |
| Esri | spatial |
Detailed Description
An object of this type must be provided by classes that derive from DynamicEntityDataSource as the return value of DynamicEntityDataSource::onLoadAsync.
Relevant samples:
- Add custom dynamic entity data source: Create a custom dynamic entity data source and display it using a dynamic entity layer.
- Query dynamic entities: Find dynamic entities from a data source that match a query.
Member Function Documentation
DynamicEntityDataSourceInfo::DynamicEntityDataSourceInfo (const QString &entityIdFieldName , const QList<Esri::ArcGISRuntime::Field > &fields, QObject *parent = nullptr)
Creates a new data source info.
- entityIdFieldName - The name of the field from the provided fields array containing values that uniquely identify each entity. For example, the track id field with a unique identifier for each track from track-aware data, or the object id field for discrete data. The following field types are supported for the entity id field: FieldType::Int16, FieldType::Int32, FieldType::Int64, FieldType::Float32, FieldType::Float64, FieldType::GUID, FieldType::OID, FieldType::GlobalId, and FieldType::Text.
- fields - The data source's field definitions.
- parent - The optional parent QObject.
[override virtual noexcept] DynamicEntityDataSourceInfo::~DynamicEntityDataSourceInfo ()
Destructor.
QString DynamicEntityDataSourceInfo::description() const
Returns the description of the data source.
See also setDescription().
QString DynamicEntityDataSourceInfo::entityIdFieldName () const
Returns the name of the field from the fields collection containing values that uniquely identify each entity.
For example, the track id field with a unique identifier for each track from track-aware data, or the object id field for discrete data.
The field name should reference a field in the fields collection. The values in this field help the underlying data source to associate observations with their related dynamic entities.
The following field types are supported for the entity id field: FieldType::Int16, FieldType::Int32, FieldType::Int64, FieldType::Float32, FieldType::Float64, FieldType::GUID, FieldType::OID, FieldType::GlobalId, and FieldType::Text.
QList<Esri::ArcGISRuntime::Field > DynamicEntityDataSourceInfo::fields() const
Returns the data source's field definitions.
Esri::ArcGISRuntime::Envelope DynamicEntityDataSourceInfo::fullExtent () const
Returns the full extent of the source data.
See also setFullExtent().
void DynamicEntityDataSourceInfo::setDescription (const QString &description)
Sets the description to description.
See also description.
void DynamicEntityDataSourceInfo::setFullExtent (const Esri::ArcGISRuntime::Envelope &fullExtent )
Sets the fullExtent to fullExtent.
See also fullExtent.
void DynamicEntityDataSourceInfo::setSpatialReference (const Esri::ArcGISRuntime::SpatialReference &spatialReference )
Sets the spatialReference to spatialReference.
See also spatialReference.
Esri::ArcGISRuntime::SpatialReference DynamicEntityDataSourceInfo::spatialReference () const
Returns the SpatialReference of this data source.
The default is WGS84 (4326).
See also setSpatialReference().