Skip to content

Commit

Permalink
Merge pull request #33 from lossyrob/feature/rde/work-with-current-st…
Browse files Browse the repository at this point in the history
…ac-versions

Update stac-browser to work with STAC 0.9 and 1.0.0-beta.1
  • Loading branch information
lossyrob authored Jun 12, 2020
2 parents cf32d1c + de1eb52 commit 80488c1
Show file tree
Hide file tree
Showing 11 changed files with 619 additions and 600 deletions.
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,24 @@ For a longer list of examples, checkout out [stac.cloud](http://stac.cloud).
## Running

By default, stac-browser will browse the [testbed Planet
catalog](https://storage.googleapis.com/pdd-stac/disasters/catalog.json)
([GitHub](https://github.com/cholmes/pdd-stac/)). To browse your own, set
catalog](https://raw.githubusercontent.com/cholmes/sample-stac/master/stac/catalog.json)
([GitHub](https://github.com/cholmes/sample-stac/)). To browse your own, set
`CATALOG_URL` when building.

```bash
npm install
CATALOG_URL=http://path/to/catalog.json npm start -- --open
```

Validation will happen againt the version of stac defined in the Catalog, Collection or Item
`stac_version` property. If you are running against an older STAC version where the objects
do not conatin a `stac_version` property, you'll need to set the `STAC_VERSION` environment
variable e.g.:

```
STAC_VERSION=0.6.0 CATALOG_URL=http://path/to/catalog.json npm start -- --open
```

STAC Browser defaults to using [HTML5 History
Mode](https://router.vuejs.org/guide/essentials/history-mode.html), which can
cause problems on certain web hosts. To use _hash mode_, set
Expand Down Expand Up @@ -114,7 +123,7 @@ Catalogs and collections are rendered using the
[`Item`](src/components/Item.vue) component. Common functionality across both
components exists in [`src/components/common.js`](src/components/common.js).
Mappings between property keys (e.g. `eo:platform`) are defined in
[`src/lib/stac/dictionary.json`](src/lib/stac/dictionary.json).
[`src/properties.js`](src/properties.js).

## Alternate Implementations

Expand Down
72 changes: 0 additions & 72 deletions schema/catalog.json

This file was deleted.

148 changes: 0 additions & 148 deletions schema/collection.json

This file was deleted.

128 changes: 0 additions & 128 deletions schema/item.json

This file was deleted.

Loading

0 comments on commit 80488c1

Please sign in to comment.