Closed seskildsen closed 2 years ago
In POST /search.
/search
If using intersects, POINT geometry, and filter to get a direction, the returned matched value is 12.
POST /search
{ "intersects": { "type": "Point", "coordinates":[ 10.4064, 55.3951 ] }, "filter-lang": "cql-json", "filter": { "and": [ {"eq": [ { "property": "direction" }, "east" ] } ] } }
But if using only filter and there specify a intersects and a direction the returned matched is 67.
POST /search { "filter-lang": "cql-json", "filter": { "intersects": [ { "property": "geometry" }, { "type": "Point", "coordinates": [ 10.4064, 55.3951 ] } ], "and": [ {"eq": [ { "property": "direction" }, "east" ] } ] } }
{ "filter-lang": "cql-json", "filter": { "intersects": [ { "property": "geometry" }, { "type": "Point", "coordinates": [ 10.4064, 55.3951 ] } ], "and": [ {"eq": [ { "property": "direction" }, "east" ] } ] } }
These are not valid cql filters. The length of the array of anded items must be at least 2.
and
However it would be nice if the API returned an error in this case: #47
In POST
/search
.If using intersects, POINT geometry, and filter to get a direction, the returned matched value is 12.
POST /search
{ "intersects": { "type": "Point", "coordinates":[ 10.4064, 55.3951 ] }, "filter-lang": "cql-json", "filter": { "and": [ {"eq": [ { "property": "direction" }, "east" ] } ] } }
But if using only filter and there specify a intersects and a direction the returned matched is 67.
POST /search
{ "filter-lang": "cql-json", "filter": { "intersects": [ { "property": "geometry" }, { "type": "Point", "coordinates": [ 10.4064, 55.3951 ] } ], "and": [ {"eq": [ { "property": "direction" }, "east" ] } ] } }