The Items operation retrieves the data records associated with a collection ID. The response is always returned as GeoJSON.
Several parameters are supported that can be used to constrain or filter the response. You can limit the number of records, specify the number of records returned, filter the records using the CQL2 filter language, or specify a bounding box to restrict the response to only records within the box. The parameters can be used individually or in combination as needed.
Request format
https://api.cloud.precisely.com/v1/ogcapi/enrich/collections/{collectionId}/items?<parameters-as-specified-below>
Request header and query parameters
| Name | Type | Required | Description |
|---|---|---|---|
| collectionId * | string | Yes | Unique identifier of the collection. Format:
If no parameters other than Example:
|
| limit | Integer | No | Returns the first number of records specified. The example below returns the first 50 records. The maximum limit allowed is 10000 Example:
See also offset below. |
| offset | Integer | No | Returns the number of specified records starting at the specified offset. In the below example we return the 50 records starting at offset 100 (i.e. records 100 to 149). The response includes links to the next and previous pages when using offset
Example: Returns the 50 records starting at record 100.
See also limit above. |
| bbox | string | No | Returns the records within the specified bounding box. The co-ordinates for the bbox are in the order (minX, minY, maxX, maxY), where X is the longitude value and Y is the latitude value. The default limit and offset rules apply. Hence it is usually necessary to specify the limit if more than 10 records are expected. Example:
See also Items with bbox. |
| filter | string | No | This parameter accepts a filter clause in the CQL2 filter language standard. Both spatial and attribute filters are supported by CQL2 . The standard is defined here https://www.ogc.org/publications/standard/cql2/. Both spatial and attribute filters are supported by CQL2 The supported spatial filters are listed using the Functions endpoint. They are:
Example:
Below are some examples of typical filter queries. For a full reference to all of the operations supported by CQL please refer to the standard at the above link. |