-
Notifications
You must be signed in to change notification settings - Fork 137
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
Update stac-browser to work with STAC 0.9 and 1.0.0-beta.1 #33
Update stac-browser to work with STAC 0.9 and 1.0.0-beta.1 #33
Conversation
In the case where external items are used with the context extension, features are paged during fetch time. Therefore the number of items in the 'items' collection is always less than the item page limit, so it's necessary for the Vue table based paging to always 'stay' on page 1 to show the current item list.
This is useful if you want to test stac-browser against a STAC that does not have the CORS permission to be used in stac-browser. For example, with http-server installed from npm nad running ``` http-server -p 1111 --proxy https://geobase-spot-dev.s3.amazonaws.com/ --cors ``` to proxy the geobase STAC, and then running stac-browser with ``` CATALOG_URL=https://geobase-spot-dev.s3.amazonaws.com/catalog.json \ STAC_PROXY_URL="https://geobase-spot-dev.s3.amazonaws.com|http://localhost:1111" \ npm start ``` Allows for proper browsing of that STAC.
300a8fd
to
a9212a3
Compare
Wonderful! What are the common mistakes? |
@m-mohr the two that I accounted for were: the spatial extent 'bbox' being a single array of coordinates instead of an array of arrays, and provider roles being a single string instead of an array. |
This updates the collection extent format to the 0.8 and above specification. This also accounts for backwards compatibility, so pre-0.8 STACs will still work.
This commit deletes the "dictionary.json" property map that exists, and creates a `property.js` file that defines mappings between property names and display information for use in the property bar. It also adds properties and extenions for 1.0.0-beta.1.
a9212a3
to
8ceada8
Compare
This commit adds async schema validation that fetches schema based on the stac version of the object being presented.
8ceada8
to
de1eb52
Compare
Thank you for the review @m-mohr! |
This PR updates stac-browser to work with 1.0.0-beta.1 and 0.9.0 STACs.
Changes of note:
dictionary.json
property map to a js function for comment-ability; split the group definitions (extensions and data providers) from the properties. Added property definitions for 1.0.0-beta.1 extensions so they show up on the side bar - some exceptions for objects that would require more complicated display logic.stac_version
property.Catalogs tested against:
Some catalogs had validation errors; I put in some workarounds to account for common mistakes, but in some cases the STACs will need to be corrected to work with the updated stac-browser.