Skip to content

Inverting conditions in CQL expression with NOT() throws error #2099

@sebastianfrey

Description

@sebastianfrey

Description
Inverting conditions in a CQL filter expression with NOT throws an error.

{
  "code": "InvalidParameterValue",
  "type": "InvalidParameterValue",
  "description": "Bad CQL text"
}

Steps to Reproduce
Try the to execute the following query:

https://demo.pygeoapi.io/master/collections/lakes/items?filter=NOT(%20LIKE%20%27%lake%%27)
https://demo.pygeoapi.io/master/collections/lakes/items?filter=NOT%20(name%20LIKE%20%27%lake%%27)

The URL decoded CQL expression is:

NOT(name LIKE '%lake%')

Expected behavior
Inverting conditions with NOT() should not throw an error.

Environment

  • OS: -
  • Python version: -
  • pygeoapi version: 0.20-dev

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions