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.
The ArcGIS Runtime API for OGC API Features 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 members: the FeatureRequestMode property and the PopulateFromServiceAsync(QueryParameters, Boolean, IEnumerable<String>) method. Only the ManualCache mode is supported. This means PopulateFromServiceAsync(QueryParameters, Boolean, IEnumerable<String>) 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>) method, you can put any CQL-TEXT or CQL-JSON string as defined in the document OGC API - Features - Part 3.
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 Uri for the associated "OGC API Features" service. |
Methods
Name | Description |
---|---|
PopulateFromServiceAsync(QueryParameters, Boolean, IEnumerable<String>) | Asynchronously populates the |
PopulateFromServiceAsync(QueryParameters, Boolean, IEnumerable<String>, CancellationToken) | Asynchronously populates the table using a query. |
Applies to
Target | Versions |
---|---|
.NET Standard 2.0 | 100.10 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.10 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.10 - 100.12 |
Xamarin.Android | 100.10 - 100.15 |
Xamarin.iOS | 100.10 - 100.15 |
UWP | 100.10 - 100.15 |