Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c66988f

Browse files
update filter extension conformance classes (#845)
1 parent e270f43 commit c66988f

File tree

2 files changed

+26
-8
lines changed

2 files changed

+26
-8
lines changed

CHANGES.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,21 @@
44

55
### Changed
66

7+
- move `transaction` clients and models to `stac_fastapi.extension` sub-module
78
- Add Item and Collection `PATCH` endpoints with support for [RFC 6902](https://tools.ietf.org/html/rfc6902) and [RFC 7396](https://tools.ietf.org/html/rfc7386) in the `TransactionExtension`
89
- remove support of `cql-json` in Filter extension ([#840](https://github.com/stac-utils/stac-fastapi/pull/840))
9-
- move `transaction` clients and models to `stac_fastapi.extension` sub-module
10+
- rename filter extension `FilterConformanceClasses` values and change the URLs:
11+
- `BASIC_SPATIAL_OPERATORS` -> `BASIC_SPATIAL_FUNCTIONS`
12+
- `TEMPORAL_OPERATORS` -> `TEMPORAL_FUNCTIONS`
13+
- `SPATIAL_OPERATORS` -> `SPATIAL_FUNCTIONS`
14+
- `ARRAYS` -> `ARRAY_FUNCTIONS`
15+
- `ACCENT_CASE_INSENSITIVE_COMPARISON` -> `CASE_INSENSITIVE_COMPARISON`
16+
17+
### Added
18+
19+
- add new values to filter extension `FilterConformanceClasses`
20+
- `ACCENT_INSENSITIVE_COMPARISON`
21+
- `BASIC_SPATIAL_FUNCTIONS_PLUS`
1022

1123
### Fixed
1224

stac_fastapi/extensions/stac_fastapi/extensions/core/filter/filter.py

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,26 @@ class FilterConformanceClasses(str, Enum):
3131
CQL2_TEXT = "http://www.opengis.net/spec/cql2/1.0/conf/cql2-text"
3232
CQL2_JSON = "http://www.opengis.net/spec/cql2/1.0/conf/cql2-json"
3333
BASIC_CQL2 = "http://www.opengis.net/spec/cql2/1.0/conf/basic-cql2"
34-
BASIC_SPATIAL_OPERATORS = (
35-
"http://www.opengis.net/spec/cql2/1.0/conf/basic-spatial-operators"
34+
BASIC_SPATIAL_FUNCTIONS = (
35+
"http://www.opengis.net/spec/cql2/1.0/conf/basic-spatial-functions"
3636
)
37-
TEMPORAL_OPERATORS = " http://www.opengis.net/spec/cql2/1.0/conf/temporal-operators"
37+
TEMPORAL_FUNCTIONS = "http://www.opengis.net/spec/cql2/1.0/conf/temporal-functions"
3838
ADVANCED_COMPARISON_OPERATORS = (
3939
"http://www.opengis.net/spec/cql2/1.0/conf/advanced-comparison-operators"
4040
)
41-
SPATIAL_OPERATORS = "http://www.opengis.net/spec/cql2/1.0/conf/spatial-operators"
41+
SPATIAL_FUNCTIONS = "http://www.opengis.net/spec/cql2/1.0/conf/spatial-functions"
4242
FUNCTIONS = "http://www.opengis.net/spec/cql2/1.0/conf/functions"
4343
ARITHMETIC = "http://www.opengis.net/spec/cql2/1.0/conf/arithmetic"
44-
ARRAYS = "http://www.opengis.net/spec/cql2/1.0/conf/array-operators"
44+
ARRAY_FUNCTIONS = "http://www.opengis.net/spec/cql2/1.0/conf/array-functions"
4545
PROPERTY_PROPERTY = "http://www.opengis.net/spec/cql2/1.0/conf/property-property"
46-
ACCENT_CASE_INSENSITIVE_COMPARISON = (
47-
"http://www.opengis.net/spec/cql2/1.0/conf/accent-case-insensitive-comparison"
46+
CASE_INSENSITIVE_COMPARISON = (
47+
"http://www.opengis.net/spec/cql2/1.0/conf/case-insensitive-comparison"
48+
)
49+
ACCENT_INSENSITIVE_COMPARISON = (
50+
"http://www.opengis.net/spec/cql2/1.0/conf/accent-insensitive-comparison"
51+
)
52+
BASIC_SPATIAL_FUNCTIONS_PLUS = (
53+
"http://www.opengis.net/spec/cql2/1.0/conf/basic-spatial-functions-plus"
4854
)
4955

5056

0 commit comments

Comments
 (0)