Skip to content

Commit cb8d44b

Browse files
committed
Update readme.
1 parent 7e8b35c commit cb8d44b

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

Shared/Samples/Query with CQL filters/README.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,24 @@
22

33
Query data from an OGC API feature service using CQL filters.
44

5-
![Image of Query with CQL filters](QueryWithCqlFilters.jpg)
5+
![Screenshot of Query with CQL filters sample](query-with-cql-filters.png)
66

77
## Use case
88

99
CQL (Common Query Language) is an OGC-created query language used to query for subsets of features. Use CQL filters to narrow geometry results from an OGC feature table.
1010

1111
## How to use the sample
1212

13-
Enter a CQL query. Press the "Apply query" button to see the query applied to the OGC API features shown on the map.
13+
Configure a CQL query by setting the where clause, max features count, and time extent. Tap the "Apply" button to see the query applied to the OGC API features shown on the map.
1414

1515
## How it works
1616

17-
1. Create an `OgcFeatureCollectionTable` object using a URL to an OGC API feature service and a collection ID.
17+
1. Create an `OGCFeatureCollectionTable` object using a URL to an OGC API feature service and a collection ID.
1818
2. Create a `QueryParameters` object.
19-
3. Set the `QueryParameters.WhereClause` property.
20-
4. Set the `QueryParameters.MaxFeatures` property.
21-
5. Create `Datetime` objects for the start time and end time being queried.
22-
6. Create a `TimeExtent` object using the start and end `Datetime` objects. Set the `QueryParameters.TimeExtent` property
23-
7. Populate the `OgcFeatureCollectionTable` using `PopulateFromServiceAsync()` with the custom `QueryParameters` created in the previous steps.
24-
8. Use `MapView.SetViewpointGeometryAsync()` with the `OgcFeatureCollectionTable.Extent` to view the newly-queried features.
19+
3. Set the parameters' `whereClause` and `maxFeatures` properties.
20+
4. Create a `TimeExtent` object using `Date` objects for the start time and end time being queried. Set the `timeExtent` property on the parameters.
21+
5. Populate the feature table using `populateFromService(using:clearCache:outFields:)()` with the custom query parameters created in the previous steps.
22+
6. Set the map view's viewpoint to view the newly queried features
2523

2624
## Relevant API
2725

@@ -35,7 +33,7 @@ The [Daraa, Syria test data](https://demo.ldproxy.net/daraa) is OpenStreetMap da
3533

3634
## Additional information
3735

38-
See the [OGC API website](https://ogcapi.ogc.org/) for more information on the OGC API family of standards. See the [CQL documentation](https://portal.ogc.org/files/96288#cql-core) to learn more about the common query language.
36+
See the [OGC API website](https://ogcapi.ogc.org) for more information on the OGC API family of standards. See the [CQL documentation](https://portal.ogc.org/files/96288#cql-core) to learn more about the common query language.
3937

4038
## Tags
4139

Shared/Samples/Query with CQL filters/README.metadata.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
"category": "Search and Query",
33
"description": "Query data from an OGC API feature service using CQL filters.",
44
"ignore": false,
5-
"images": [],
5+
"images": [
6+
"query-with-cql-filters.png"
7+
],
68
"keywords": [
79
"CQL",
810
"OGC",
132 KB
Loading

0 commit comments

Comments
 (0)