Method PopulateFromServiceAsync
PopulateFromServiceAsync(QueryParameters, Boolean, IEnumerable<String>)
Asynchronously populates the OGC API - Features
feature collection table with the results of a query.
Declaration
public Task<FeatureQueryResult> PopulateFromServiceAsync(QueryParameters parameters, bool clearCache, IEnumerable<string> outFields)
Parameters
Type | Name | Description |
---|---|---|
Query |
parameters | The Query |
System. |
clearCache | A value indicating whether to clear existing table data before loading new results. If |
System. |
outFields | The optional list of attribute fields to include in the result. |
Returns
Type | Description |
---|---|
System. |
A System. |
Remarks
Use the default (empty) Querynull
or an empty enumerable for outFields
will result in the
default set of outfields being used. Spatial queries (those that set
Geometry) must use Intersects.
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.10 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.2 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.10 - 200.6 |
Xamarin.Android | 100.10 - 100.14 |
Xamarin.iOS | 100.10 - 100.15 |
UWP | 100.10 - 200.6 |
PopulateFromServiceAsync(QueryParameters, Boolean, IEnumerable<String>, CancellationToken)
Asynchronously populates the table using a query.
Declaration
public async Task<FeatureQueryResult> PopulateFromServiceAsync(QueryParameters parameters, bool clearCache, IEnumerable<string> outFields, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
Query |
parameters | The Query |
System. |
clearCache | A value indicating whether to clear existing table data before loading new results. |
System. |
outFields | The optional list of attribute fields to include in the result. |
System. |
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
Type | Description |
---|---|
System. |
A System. |
Remarks
Use the default (empty) QueryParameters to get all features from a service.
Specifying null
or an empty enumerable for outFields
will result in the default set of outfields being used.
Spatial queries (those that set Geometry) must use Intersects.
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.10 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.2 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.10 - 200.6 |
Xamarin.Android | 100.10 - 100.14 |
Xamarin.iOS | 100.10 - 100.15 |
UWP | 100.10 - 200.6 |
PopulateFromServiceAsync(QueryParameters, Boolean, IEnumerable<String>, String, CancellationToken)
Populate the OGC API - Features feature collection table with the results of a query.
Declaration
public async Task<FeatureQueryResult> PopulateFromServiceAsync(QueryParameters parameters, bool clearCache, IEnumerable<string> outFields, string queryLanguage, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
Query |
parameters | Parameters that define how features are returned from the service. |
System. |
clearCache | If |
System. |
outFields | An optional list of attribute fields to include in the result. |
System. |
queryLanguage | The query language that the Where |
System. |
cancellationToken | An optional cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
Type | Description |
---|---|
System. |
A System. |
Remarks
Populates the null
or an empty enumerable for outFields
will result in the default set
of outfields being used. Spatial queries (those that specify geometries) must use the Intersects spatial
relationship.
Some OGC feature sources allow for query expressions to be written in different languages. The
queryLanguage
parameter allows you to explicitly specify the language of the
WhereCQL2-TEXT
. For more information, refer to the OGC specification
OGC API - Features - Part3. The
default value is an empty string, indicating that the Where
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 200.6 |
.NET | 200.6 |
.NET Windows | 200.6 |
.NET Android | 200.6 |
.NET iOS | 200.6 |
.NET Framework | 200.6 |
UWP | 200.6 |