Open hrodmn opened 6 days ago
Awesome, thanks for kicking the tires @hrodmn! I haven't "officially" implemented the filter extension yet (https://github.com/stac-utils/stac-rs/tree/main/crates/server#backends) but this is a good note to either implement or explicitly disallow. Shouldn't be hard to implement so I'll probably do that.
I was experimenting with using
stac-rs
as a STAC API server for a pgstac database and I ran into some issues when using thefilter
parameter.When I run a query against a
stac-fastapi-pgstac
API, I get the expected result:When I run the same query against the
stac-rs
API (started withstacrs serve --pgstac postgresql://username:password@localhost:5439/postgis --verbose
I get a database error:It seems like something is going wrong when translating the cql2-text for
pgstac
.I tried a similar test with a POST request but it looks like POST requests to
/search
are not yet implemented.Here is a sample item collection with two items with different values for the
forecast:horizon
parameter in case that is helpful context. item_collection.json