Skip to content

Commit 788b9d3

Browse files
m-mohrjlaura
authored andcommitted
Fix merge issues?!
1 parent 1304665 commit 788b9d3

File tree

7 files changed

+207
-6
lines changed

7 files changed

+207
-6
lines changed

.github/remark.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ plugins:
3737
- - remark-lint-unordered-list-marker-style
3838
- '-'
3939
- - remark-lint-list-item-indent
40-
- space
40+
- space
4141
# Tables
4242
- remark-lint-table-pipes
4343
- remark-lint-no-literal-urls

.gitignore

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,12 @@
1+
# OS files
2+
.DS_Store
3+
Thumbs.db
4+
5+
# Editors
6+
/.idea/
7+
/.vscode/
8+
9+
# Node / npm
10+
.npm
11+
/node_modules/
112
/package-lock.json
2-
/node_modules

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77
## [Unreleased]
88

99
### Added
10-
- Definition for authority and code instead of a hard coded EPSG. The EPSG code field was maintained for backwards compatibility.
10+
11+
- Added examples for Collections and Assets (in Items)
12+
13+
### Changed
1114

1215
- Updated the PROJJSON schema to v0.5
1316

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ been reprojected to a different CRS, e.g., Web Mercator, or resized to better ac
1818
fields should be specified at the Item Asset level, while those Item Asset objects that use the defaults can remain unspecified.
1919

2020
- Examples:
21-
- [Item example](examples/item.json)
21+
- [Item example](examples/item.json): Shows the basic usage of the extension in a STAC Item
22+
- [Assets in Item example](examples/assets.json): Shows the basic usage of the extension in STAC Assets (in a STAC Item)
23+
- [Collection example](examples/collection.json): Shows the basic usage of the extension in a STAC Collection (Item Assets Definiton and Summaries)
2224
- [JSON Schema](json-schema/schema.json)
2325
- [Changelog](./CHANGELOG.md)
2426

examples/assets.json

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
{
2+
"stac_version": "1.0.0",
3+
"stac_extensions": [
4+
"https://stac-extensions.github.io/projection/v1.0.0/schema.json"
5+
],
6+
"type": "Feature",
7+
"id": "20201211_223832_CS2_A",
8+
"bbox": [
9+
172.91173669923782,
10+
1.3438851951615003,
11+
172.95469614953714,
12+
1.3690476620161975
13+
],
14+
"geometry": {
15+
"type": "Polygon",
16+
"coordinates": [
17+
[
18+
[
19+
172.91173669923782,
20+
1.3438851951615003
21+
],
22+
[
23+
172.95469614953714,
24+
1.3438851951615003
25+
],
26+
[
27+
172.95469614953714,
28+
1.3690476620161975
29+
],
30+
[
31+
172.91173669923782,
32+
1.3690476620161975
33+
],
34+
[
35+
172.91173669923782,
36+
1.3438851951615003
37+
]
38+
]
39+
]
40+
},
41+
"properties": {
42+
"datetime": "2020-12-11T22:38:32.125Z",
43+
"created": "2020-12-12T01:48:13.725Z",
44+
"updated": "2020-12-12T01:48:13.725Z",
45+
"platform": "cool_sat2",
46+
"proj:epsg": null,
47+
"instruments": [
48+
"cool_sensor_v1"
49+
]
50+
},
51+
"links": [
52+
{
53+
"href": "./collection.json",
54+
"rel": "collection",
55+
"type": "application/json"
56+
}
57+
],
58+
"assets": {
59+
"analytic": {
60+
"href": "https://storage.googleapis.com/open-cogs/stac-examples/20201211_223832_CS2_analytic.tif",
61+
"type": "image/tiff; application=geotiff; profile=cloud-optimized",
62+
"title": "4-Band Analytic",
63+
"roles": [
64+
"data"
65+
],
66+
"gsd": 0.66,
67+
"proj:epsg": 32659,
68+
"proj:shape": [
69+
5558,
70+
9559
71+
],
72+
"proj:transform": [
73+
0.5,
74+
0,
75+
712710,
76+
0,
77+
-0.5,
78+
151406,
79+
0,
80+
0,
81+
1
82+
]
83+
},
84+
"thumbnail": {
85+
"href": "https://storage.googleapis.com/open-cogs/stac-examples/20201211_223832_CS2.jpg",
86+
"title": "Thumbnail",
87+
"type": "image/png",
88+
"roles": [
89+
"thumbnail"
90+
]
91+
}
92+
},
93+
"collection": "proj-example"
94+
}

examples/collection.json

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
{
2+
"stac_version": "1.0.0",
3+
"stac_extensions": [
4+
"https://stac-extensions.github.io/projection/v1.0.0/schema.json",
5+
"https://stac-extensions.github.io/item-assets/v1.0.0/schema.json"
6+
],
7+
"type": "Collection",
8+
"id": "proj-example",
9+
"description": "An example for the projection extension in Collections based on Planet data.",
10+
"links": [
11+
{
12+
"rel": "item",
13+
"href": "./item.json",
14+
"title": "Proj in Items"
15+
},
16+
{
17+
"rel": "item",
18+
"href": "./item-assets.json",
19+
"title": "Proj in Items Assets"
20+
}
21+
],
22+
"title": "Projection Extension example",
23+
"item_assets": {
24+
"analytic": {
25+
"type": "image/tiff; application=geotiff; profile=cloud-optimized",
26+
"title": "4-Band Analytic",
27+
"roles": [
28+
"data"
29+
],
30+
"gsd": 0.66,
31+
"proj:epsg": 32659,
32+
"proj:shape": [
33+
5558,
34+
9559
35+
],
36+
"proj:transform": [
37+
0.5,
38+
0,
39+
712710,
40+
0,
41+
-0.5,
42+
151406,
43+
0,
44+
0,
45+
1
46+
]
47+
}
48+
},
49+
"summaries": {
50+
"platform": [
51+
"cool_sat2"
52+
],
53+
"instruments": [
54+
"cool_sensor_v1"
55+
],
56+
"gsd": [
57+
0.66
58+
],
59+
"proj:epsg": [
60+
32659,
61+
null
62+
]
63+
},
64+
"extent": {
65+
"spatial": {
66+
"bbox": [
67+
[
68+
172.91173669923782,
69+
1.3438851951615003,
70+
172.95469614953714,
71+
1.3690476620161975
72+
]
73+
]
74+
},
75+
"temporal": {
76+
"interval": [
77+
[
78+
"2020-12-11T22:38:32.125Z",
79+
"2020-12-11T22:38:32.125Z"
80+
]
81+
]
82+
}
83+
},
84+
"license": "PDDL-1.0"
85+
}

examples/item.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,13 @@
6464
1
6565
]
6666
},
67-
"links": [],
67+
"links": [
68+
{
69+
"href": "./collection.json",
70+
"rel": "collection",
71+
"type": "application/json"
72+
}
73+
],
6874
"assets": {
6975
"analytic": {
7076
"href": "https://storage.googleapis.com/open-cogs/stac-examples/20201211_223832_CS2_analytic.tif",
@@ -90,5 +96,6 @@
9096
"visual"
9197
]
9298
}
93-
}
99+
},
100+
"collection": "proj-example"
94101
}

0 commit comments

Comments
 (0)