Skip to content

Commit 217e1bc

Browse files
committed
Improve examples
1 parent 3ed3c6e commit 217e1bc

File tree

2 files changed

+81
-2
lines changed

2 files changed

+81
-2
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,12 @@ It allows adding details related to cloud object storage access and costs to be
1212
This extension does not cover NFS solutions provided by PaaS cloud companies.
1313

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

examples/collection.json

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
{
2+
"stac_version": "1.0.0",
3+
"stac_extensions": [
4+
"https://stac-extensions.github.io/storage/v2.0.0/schema.json",
5+
"https://stac-extensions.github.io/authentication/v1.0.0/schema.json"
6+
],
7+
"type": "Collection",
8+
"id": "20190822T183518Z_746_POM1_ST2_P",
9+
"title": "Example Collection",
10+
"description": "An example catalog with a link to documentation on object storage.",
11+
"license": "CC-0",
12+
"storage:schemes": {
13+
"aws": {
14+
"platform": "AWS",
15+
"region": "us-west-2",
16+
"requester_pays": true,
17+
"tier": "Standard"
18+
}
19+
},
20+
"auth:schemes": {
21+
"aws": {
22+
"type": "s3"
23+
}
24+
},
25+
"assets": {
26+
"stac-items": {
27+
"title": "STAC Items as GeoParquet",
28+
"href": "s3://mybucket/project/items.parquet",
29+
"type": "application/vnd.apache.parquet",
30+
"storage:refs": [
31+
"aws"
32+
],
33+
"auth:refs": [
34+
"aws"
35+
]
36+
}
37+
},
38+
"links": [
39+
{
40+
"href": "https://example.com/examples/catalog-link.json",
41+
"rel": "self"
42+
},
43+
{
44+
"title": "Documentation",
45+
"href": "s3://mybucket/project/documentation.pdf",
46+
"type": "application/pdf",
47+
"rel": "about",
48+
"storage:refs": [
49+
"aws"
50+
],
51+
"auth:refs": [
52+
"aws"
53+
]
54+
}
55+
],
56+
"extent": {
57+
"spatial": {
58+
"bbox": [
59+
[
60+
-180,
61+
-56,
62+
180,
63+
83
64+
]
65+
]
66+
},
67+
"temporal": {
68+
"interval": [
69+
[
70+
"2015-06-23T00:00:00Z",
71+
null
72+
]
73+
]
74+
}
75+
}
76+
}

0 commit comments

Comments
 (0)