-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adjust datetime filter for STAC search #515
Comments
@ividito it just now occurred to me to check if this collection used a nominal datetime or a time range (start/end). It looks like a range was used for the item datetime properties instead of a single nominal datetime. As in: https://staging-stac.delta-backend.com/collections/CMIP245-winter-median-ta/items/CMIP6ensembleMedian_diff_winter_tas_ssp245_20850214.cog So in this case pgstac is behaving as expected for the filter search. If a nominal datetime of |
Looks like the old method is still being used veda-ui/app/scripts/components/common/mapbox/layers/utils.ts Lines 344 to 362 in 41b77fb
|
When filtering a STAC
/search
bydatetime
, the method currently being used will not always return desired results (veda-backend/#170). Instead of using afilter
to refine/search
requests, we should use thedatetime
parameter, which will find overlapping data instead of data where thestart_datetime
falls within the search range.For example, the following request:
Should be converted to:
This change should also avoid the need to merge veda-config/#240
The text was updated successfully, but these errors were encountered: