diff --git a/CHANGES.md b/CHANGES.md index 44ba69860..be759c9e7 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -4,9 +4,21 @@ ### Changed +- move `transaction` clients and models to `stac_fastapi.extension` sub-module - 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` - remove support of `cql-json` in Filter extension ([#840](https://github.com/stac-utils/stac-fastapi/pull/840)) -- move `transaction` clients and models to `stac_fastapi.extension` sub-module +- rename filter extension `FilterConformanceClasses` values and change the URLs: + - `BASIC_SPATIAL_OPERATORS` -> `BASIC_SPATIAL_FUNCTIONS` + - `TEMPORAL_OPERATORS` -> `TEMPORAL_FUNCTIONS` + - `SPATIAL_OPERATORS` -> `SPATIAL_FUNCTIONS` + - `ARRAYS` -> `ARRAY_FUNCTIONS` + - `ACCENT_CASE_INSENSITIVE_COMPARISON` -> `CASE_INSENSITIVE_COMPARISON` + +### Added + +- add new values to filter extension `FilterConformanceClasses` + - `ACCENT_INSENSITIVE_COMPARISON` + - `BASIC_SPATIAL_FUNCTIONS_PLUS` ### Fixed diff --git a/stac_fastapi/extensions/stac_fastapi/extensions/core/filter/filter.py b/stac_fastapi/extensions/stac_fastapi/extensions/core/filter/filter.py index 7e8d7f57c..c967755bb 100644 --- a/stac_fastapi/extensions/stac_fastapi/extensions/core/filter/filter.py +++ b/stac_fastapi/extensions/stac_fastapi/extensions/core/filter/filter.py @@ -31,20 +31,26 @@ class FilterConformanceClasses(str, Enum): CQL2_TEXT = "http://www.opengis.net/spec/cql2/1.0/conf/cql2-text" CQL2_JSON = "http://www.opengis.net/spec/cql2/1.0/conf/cql2-json" BASIC_CQL2 = "http://www.opengis.net/spec/cql2/1.0/conf/basic-cql2" - BASIC_SPATIAL_OPERATORS = ( - "http://www.opengis.net/spec/cql2/1.0/conf/basic-spatial-operators" + BASIC_SPATIAL_FUNCTIONS = ( + "http://www.opengis.net/spec/cql2/1.0/conf/basic-spatial-functions" ) - TEMPORAL_OPERATORS = " http://www.opengis.net/spec/cql2/1.0/conf/temporal-operators" + TEMPORAL_FUNCTIONS = "http://www.opengis.net/spec/cql2/1.0/conf/temporal-functions" ADVANCED_COMPARISON_OPERATORS = ( "http://www.opengis.net/spec/cql2/1.0/conf/advanced-comparison-operators" ) - SPATIAL_OPERATORS = "http://www.opengis.net/spec/cql2/1.0/conf/spatial-operators" + SPATIAL_FUNCTIONS = "http://www.opengis.net/spec/cql2/1.0/conf/spatial-functions" FUNCTIONS = "http://www.opengis.net/spec/cql2/1.0/conf/functions" ARITHMETIC = "http://www.opengis.net/spec/cql2/1.0/conf/arithmetic" - ARRAYS = "http://www.opengis.net/spec/cql2/1.0/conf/array-operators" + ARRAY_FUNCTIONS = "http://www.opengis.net/spec/cql2/1.0/conf/array-functions" PROPERTY_PROPERTY = "http://www.opengis.net/spec/cql2/1.0/conf/property-property" - ACCENT_CASE_INSENSITIVE_COMPARISON = ( - "http://www.opengis.net/spec/cql2/1.0/conf/accent-case-insensitive-comparison" + CASE_INSENSITIVE_COMPARISON = ( + "http://www.opengis.net/spec/cql2/1.0/conf/case-insensitive-comparison" + ) + ACCENT_INSENSITIVE_COMPARISON = ( + "http://www.opengis.net/spec/cql2/1.0/conf/accent-insensitive-comparison" + ) + BASIC_SPATIAL_FUNCTIONS_PLUS = ( + "http://www.opengis.net/spec/cql2/1.0/conf/basic-spatial-functions-plus" )