Skip to content

Commit

Permalink
Fix merge issues?!
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohr committed Feb 6, 2023
1 parent cd47882 commit e34b6de
Show file tree
Hide file tree
Showing 7 changed files with 205 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/remark.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ plugins:
- - remark-lint-unordered-list-marker-style
- '-'
- - remark-lint-list-item-indent
- space
- space
# Tables
- remark-lint-table-pipes
- remark-lint-no-literal-urls
12 changes: 11 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,12 @@
# OS files
.DS_Store
Thumbs.db

# Editors
/.idea/
/.vscode/

# Node / npm
.npm
/node_modules/
/package-lock.json
/node_modules
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- Added examples for Collections and Assets (in Items)

### Changed

- Updated the PROJJSON schema to v0.5
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ been reprojected to a different CRS, e.g., Web Mercator, or resized to better ac
fields should be specified at the Item Asset level, while those Item Asset objects that use the defaults can remain unspecified.

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

Expand Down
94 changes: 94 additions & 0 deletions examples/assets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
{
"stac_version": "1.0.0",
"stac_extensions": [
"https://stac-extensions.github.io/projection/v1.0.0/schema.json"
],
"type": "Feature",
"id": "20201211_223832_CS2_A",
"bbox": [
172.91173669923782,
1.3438851951615003,
172.95469614953714,
1.3690476620161975
],
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
172.91173669923782,
1.3438851951615003
],
[
172.95469614953714,
1.3438851951615003
],
[
172.95469614953714,
1.3690476620161975
],
[
172.91173669923782,
1.3690476620161975
],
[
172.91173669923782,
1.3438851951615003
]
]
]
},
"properties": {
"datetime": "2020-12-11T22:38:32.125Z",
"created": "2020-12-12T01:48:13.725Z",
"updated": "2020-12-12T01:48:13.725Z",
"platform": "cool_sat2",
"proj:epsg": null,
"instruments": [
"cool_sensor_v1"
]
},
"links": [
{
"href": "./collection.json",
"rel": "collection",
"type": "application/json"
}
],
"assets": {
"analytic": {
"href": "https://storage.googleapis.com/open-cogs/stac-examples/20201211_223832_CS2_analytic.tif",
"type": "image/tiff; application=geotiff; profile=cloud-optimized",
"title": "4-Band Analytic",
"roles": [
"data"
],
"gsd": 0.66,
"proj:epsg": 32659,
"proj:shape": [
5558,
9559
],
"proj:transform": [
0.5,
0,
712710,
0,
-0.5,
151406,
0,
0,
1
]
},
"thumbnail": {
"href": "https://storage.googleapis.com/open-cogs/stac-examples/20201211_223832_CS2.jpg",
"title": "Thumbnail",
"type": "image/png",
"roles": [
"thumbnail"
]
}
},
"collection": "proj-example"
}
85 changes: 85 additions & 0 deletions examples/collection.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
{
"stac_version": "1.0.0",
"stac_extensions": [
"https://stac-extensions.github.io/projection/v1.0.0/schema.json",
"https://stac-extensions.github.io/item-assets/v1.0.0/schema.json"
],
"type": "Collection",
"id": "proj-example",
"description": "An example for the projection extension in Collections based on Planet data.",
"links": [
{
"rel": "item",
"href": "./item.json",
"title": "Proj in Items"
},
{
"rel": "item",
"href": "./item-assets.json",
"title": "Proj in Items Assets"
}
],
"title": "Projection Extension example",
"item_assets": {
"analytic": {
"type": "image/tiff; application=geotiff; profile=cloud-optimized",
"title": "4-Band Analytic",
"roles": [
"data"
],
"gsd": 0.66,
"proj:epsg": 32659,
"proj:shape": [
5558,
9559
],
"proj:transform": [
0.5,
0,
712710,
0,
-0.5,
151406,
0,
0,
1
]
}
},
"summaries": {
"platform": [
"cool_sat2"
],
"instruments": [
"cool_sensor_v1"
],
"gsd": [
0.66
],
"proj:epsg": [
32659,
null
]
},
"extent": {
"spatial": {
"bbox": [
[
172.91173669923782,
1.3438851951615003,
172.95469614953714,
1.3690476620161975
]
]
},
"temporal": {
"interval": [
[
"2020-12-11T22:38:32.125Z",
"2020-12-11T22:38:32.125Z"
]
]
}
},
"license": "PDDL-1.0"
}
11 changes: 9 additions & 2 deletions examples/item.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,13 @@
1
]
},
"links": [],
"links": [
{
"href": "./collection.json",
"rel": "collection",
"type": "application/json"
}
],
"assets": {
"analytic": {
"href": "https://storage.googleapis.com/open-cogs/stac-examples/20201211_223832_CS2_analytic.tif",
Expand All @@ -90,5 +96,6 @@
"visual"
]
}
}
},
"collection": "proj-example"
}

0 comments on commit e34b6de

Please sign in to comment.