Skip to content

Commit

Permalink
Pv/update stac api version and add collections cc (#154)
Browse files Browse the repository at this point in the history
* update stac api conformance class version to beta.5 from beta.2, add stac api features and collections conf classes
  • Loading branch information
Phil Varner authored Feb 18, 2022
1 parent 2be7972 commit f9d11c9
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 7 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,17 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

### Added
- Add conformance classes for `STAC API - Features` and `STAC API - Collections`. Both were already fully-supported, but
were not advertised in the landing page conformsTo attribute or the /conformance endpoint.

### Fixed

### Changed
- Upgrade to Node 14

### Removed

## [0.3.1] - 2021-07-28

### Removed
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ The following APIs are deployed instances of stac-server:
| ---------------------------------------------------------- | ------------ | ---------------- |
| [Earth Search](https://earth-search.aws.element84.com/v0/) | 1.0.0-beta.2 | 0.9.0 | Catalog of some AWS Public Datasets |
| [Landsat Look](https://landsatlook.usgs.gov/stac-server) | 1.0.0 | 0.9.0 | |

| [USGS Planetary Catalog](https://asc-stacbrowser.s3.us-west-2.amazonaws.com/catalog.json) | 1.0.0 | | USGS Astrogeology hosted Analysis Ready Data (ARD) |
## Migration

### 0.3 -> 0.4
Expand Down
15 changes: 10 additions & 5 deletions libs/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -428,11 +428,16 @@ const getAPI = async function () {
const getConformance = async function () {
const conformance = {
conformsTo: [
'https://api.stacspec.org/v1.0.0-beta.2/core',
'https://api.stacspec.org/v1.0.0-beta.2/item-search',
'https://api.stacspec.org/v1.0.0-beta.2/item-search#fields',
'https://api.stacspec.org/v1.0.0-beta.2/item-search#sort',
'https://api.stacspec.org/v1.0.0-beta.2/item-search#query',
'https://api.stacspec.org/v1.0.0-beta.5/core',
'https://api.stacspec.org/v1.0.0-beta.5/collections',
'https://api.stacspec.org/v1.0.0-beta.5/ogcapi-features',
'https://api.stacspec.org/v1.0.0-beta.5/ogcapi-features#fields',
'https://api.stacspec.org/v1.0.0-beta.5/ogcapi-features#sort',
'https://api.stacspec.org/v1.0.0-beta.5/ogcapi-features#query',
'https://api.stacspec.org/v1.0.0-beta.5/item-search',
'https://api.stacspec.org/v1.0.0-beta.5/item-search#fields',
'https://api.stacspec.org/v1.0.0-beta.5/item-search#sort',
'https://api.stacspec.org/v1.0.0-beta.5/item-search#query',
'http://www.opengis.net/spec/ogcapi-features-1/1.0/conf/core',
'http://www.opengis.net/spec/ogcapi-features-1/1.0/conf/oas30',
'http://www.opengis.net/spec/ogcapi-features-1/1.0/conf/geojson'
Expand Down
2 changes: 1 addition & 1 deletion tests/test_api_search.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ test('search /api', async (t) => {
test('search /conformance', async (t) => {
const actual = await api.API('/conformance', undefined, undefined, 'endpoint')
t.truthy(actual.conformsTo)
t.is(actual.conformsTo.length, 8)
t.is(actual.conformsTo.length, 13)
})

test('search /', async (t) => {
Expand Down

0 comments on commit f9d11c9

Please sign in to comment.