Skip to content

Commit

Permalink
Improve examples
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohr committed Apr 28, 2024
1 parent 3ed3c6e commit 7a671b0
Show file tree
Hide file tree
Showing 2 changed files with 81 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,12 @@ It allows adding details related to cloud object storage access and costs to be
This extension does not cover NFS solutions provided by PaaS cloud companies.

- Examples:
- [NAIP Item](examples/item-naip.json): Shows the usage of the extension in combination with the alternate asset extension.
- [NSL Item](examples/item-nsl.json): Shows a mixture of storage providers, including custom S3 hosts.
- [NAIP Item](examples/item-naip.json): Shows a mixture of storage providers, including custom S3 hosts.
- [NSL Item](examples/item-nsl.json): Shows the usage of the extension in combination with the
[alternate asset extension](https://github.com/stac-extensions/alternate-assets).
- [Catalog with Link](examples/catalog-link.json): Shows the usage of the extension on a link in a STAC Catalog.
- [Collection with Auth](examples/catalog-link.json): Shows the usage of the extension in a STAC Collecion in combination with the
[authentication extension](https://github.com/stac-extensions/authentication).
- [JSON Schema](json-schema/schema.json)
- [Changelog](./CHANGELOG.md)

Expand Down
76 changes: 76 additions & 0 deletions examples/collection.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
{
"stac_version": "1.0.0",
"stac_extensions": [
"https://stac-extensions.github.io/storage/v2.0.0/schema.json",
"https://stac-extensions.github.io/authentication/v1.1.0/schema.json"
],
"type": "Collection",
"id": "20190822T183518Z_746_POM1_ST2_P",
"title": "Example Collection",
"description": "An example catalog with a link to documentation on object storage.",
"license": "CC-0",
"storage:schemes": {
"aws": {
"platform": "AWS",
"region": "us-west-2",
"requester_pays": true,
"tier": "Standard"
}
},
"auth:schemes": {
"aws": {
"type": "s3"
}
},
"assets": {
"stac-items": {
"title": "STAC Items as GeoParquet",
"href": "s3://mybucket/project/items.parquet",
"type": "application/vnd.apache.parquet",
"storage:refs": [
"aws"
],
"auth:refs": [
"aws"
]
}
},
"links": [
{
"href": "https://example.com/examples/catalog-link.json",
"rel": "self"
},
{
"title": "Documentation",
"href": "s3://mybucket/project/documentation.pdf",
"type": "application/pdf",
"rel": "about",
"storage:refs": [
"aws"
],
"auth:refs": [
"aws"
]
}
],
"extent": {
"spatial": {
"bbox": [
[
-180,
-56,
180,
83
]
]
},
"temporal": {
"interval": [
[
"2015-06-23T00:00:00Z",
null
]
]
}
}
}

0 comments on commit 7a671b0

Please sign in to comment.