Skip to content
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

Sortby fails on namespaced properties #128

Open
sharkinsspatial opened this issue Feb 7, 2021 · 2 comments
Open

Sortby fails on namespaced properties #128

sharkinsspatial opened this issue Feb 7, 2021 · 2 comments

Comments

@sharkinsspatial
Copy link

sharkinsspatial commented Feb 7, 2021

Sorting functions as expected on raw properties but fails on properties with a namespace prefix such as eo:cloud_cover.

curl --location --request GET 'https://cmr.earthdata.nasa.gov/stac/LPCLOUD/search?bounding_box=-10,5,-9,11&datetime=2021-01-28&sortby=properties.eo:cloud_cover'
@scottyhq
Copy link

@sharkinsspatial @matthewhanson I think sorting in general might have issues, here is another example that doesn't work as expected via sat-search Python library:

from satsearch import Search
results = Search(url='https://cmr.earthdata.nasa.gov/stac/LPCLOUD',
                 collections=['HLSS30.v1.5'], 
                 bbox = '-122.4,41.3,-122.1,41.5', 
                 datetime='2021-01-01/2021-02-01',  
                 #sortby='-properties.datetime' # results in 0 found but no error raised (but there are 13 items)
                )
results.found()

@eudoroolivares2016
Copy link
Contributor

This issue should be resolved with https://bugs.earthdata.nasa.gov/browse/CMR-10165 which has not yet hit the production environment: #355

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants