Class OgcFeatureCollectionTable
Represents a feature collection in an "OGC API Features" service.
Namespace: Esri.ArcGISRuntime.Data
Assembly: Esri.ArcGISRuntime.dll
Syntax
public sealed class OgcFeatureCollectionTable : FeatureTable, INotifyPropertyChanged, ILoadable
Remarks
To display data from an OGC feature collection table in a FeatureLayer use the FeatureLayer(FeatureTable) constructor where the OgcFeatureCollectionTable is the parameter that is passed into the constructor. Note: The OgcFeatureCollectionTable should not be confused with FeatureCollectionTable which is used as an input to create a FeatureCollectionLayer.
This API provides building blocks for manipulating features on the Web. For more information about the OGC API Features specification see the documents: OGC API - Features - Part 1 and OGC API - Features - Part 2.
The class includes two important pieces: the FeatureRequestMode
property and the PopulateFromServiceAsync(QueryParameters, Boolean, IEnumerable<String>)
methods. Only the ManualCache mode is supported. This means that one of the
PopulateFromServiceAsync(QueryParameters, Boolean, IEnumerable<String>)
methods must be called to populate, query, and return features from the service. For the
WhereClause that is used by the
PopulateFromServiceAsync(QueryParameters, Boolean, IEnumerable<String>)
methods, you can put any CQL-TEXT or CQL-JSON string as defined in the document
Common Query Language (CQL2). Use the
When populating or updating a local table from an OGC service, you can now request features in a specified SpatialReference (also referred to as SRS in ArcGIS or CRS in OGC). This leverages the power of the server to return features in the same spatial reference as your map rather than having to re-project them on the client.
This class supports loading and querying of features from a non-spatial OGC feature collection table.
Constructors
Name | Description |
---|---|
OgcFeatureCollectionTable(OgcFeatureCollectionInfo) | Initializes a new instance of the OgcFeatureCollectionTable class from collection metadata. |
OgcFeatureCollectionTable(Uri, String) | Initializes a new instance of the OgcFeatureCollectionTable class. |
Properties
Name | Description |
---|---|
FeatureCollectionInfo | Gets the feature collection metadata, which includes ID, title, and description. |
FeatureRequestMode | Gets or sets the mode defining when features are requested from the service. |
Source | Gets the landing page System.Uri for the associated "OGC API Features" service. |
Methods
Name | Description |
---|---|
PopulateFromServiceAsync(QueryParameters, Boolean, IEnumerable<String>) | Asynchronously populates the |
PopulateFromServiceAsync(QueryParameters, Boolean, IEnumerable<String>, String, CancellationToken) | Populate the OGC API - Features feature collection table with the results of a query. |
PopulateFromServiceAsync(QueryParameters, Boolean, IEnumerable<String>, CancellationToken) | Asynchronously populates the table using a query. |
Applies to
Target | Versions |
---|---|
.NET Standard 2.0 | 100.10 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.10 - 200.6 |
Xamarin.Android | 100.10 - 100.15 |
Xamarin.iOS | 100.10 - 100.15 |
UWP | 100.10 - 200.6 |