Skip to content

Commit 65914c8

Browse files
authored
Merge pull request #328 from stac-utils/pv/query-extension
add query extension in item search
2 parents 9f5e1ff + 5884bb5 commit 65914c8

File tree

6 files changed

+951
-277
lines changed

6 files changed

+951
-277
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Added
1111

12-
- Added support for Fields Extension validation of Item Search with `--conformance item-search#fields` and `--fields-nested-property properties.eo:cloud_cover`
12+
- Added support for Fields Extension validation of Item Search
1313
- Add parameter set `--validate-pagination/--no-validate-pagination` to conditionally run the pagination tests, which may take a while to run.
14+
- Added support for Query Extension validation of Item Search
1415

1516
## [0.5.0] - 2023-02-21
1617

COMPLIANCE_REPORT.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,13 +304,29 @@ Date: 16-Nov-2022
304304
Output:
305305

306306
```text
307-
$ poetry run stac-api-validator --root-url https://earth-search.aws.element84.com/v1 \
307+
poetry run stac-api-validator --root-url https://earth-search.aws.element84.com/v1 \
308+
--conformance core \
308309
--conformance features \
309310
--conformance item-search \
310311
--conformance item-search#fields \
312+
--conformance item-search#query \
311313
--collection sentinel-2-l2a \
312314
--fields-nested-property properties.eo:cloud_cover \
313-
--geometry '{"type": "Polygon", "coordinates": [[[100.0, 0.0], [101.0, 0.0], [101.0, 1.0], [100.0, 1.0], [100.0, 0.0]]]}'
315+
--geometry '{"type": "Polygon", "coordinates": [[[100.0, 0.0], [101.0, 0.0], [101.0, 1.0], [100.0, 1.0], [100.0, 0.0]]]}' \
316+
--query-comparison-field eo:cloud_cover \
317+
--query-eq-value 7.531843 \
318+
--query-neq-value 7.531843 \
319+
--query-lt-value 7 \
320+
--query-lte-value 7.531843 \
321+
--query-gt-value 75 \
322+
--query-gte-value 7.531843 \
323+
--query-substring-field grid:code \
324+
--query-starts-with-value MGRS-48 \
325+
--query-ends-with-value UP \
326+
--query-contains-value 8NU \
327+
--query-in-field mgrs:latitude_band \
328+
--query-in-values M,N
329+
314330
INFO:stac_api_validator.validations:Validating STAC API - Core conformance class.
315331
INFO:stac_api_validator.validations:Skipping STAC API - Browseable conformance class.
316332
INFO:stac_api_validator.validations:Skipping STAC API - Children conformance class.

0 commit comments

Comments
 (0)