You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Shared/Samples/Query with CQL filters/README.md
+8-10Lines changed: 8 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,26 +2,24 @@
2
2
3
3
Query data from an OGC API feature service using CQL filters.
4
4
5
-

5
+

6
6
7
7
## Use case
8
8
9
9
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.
10
10
11
11
## How to use the sample
12
12
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.
14
14
15
15
## How it works
16
16
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.
18
18
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
25
23
26
24
## Relevant API
27
25
@@ -35,7 +33,7 @@ The [Daraa, Syria test data](https://demo.ldproxy.net/daraa) is OpenStreetMap da
35
33
36
34
## Additional information
37
35
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.
0 commit comments