-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #193 from tschaub/exit-code
Exit with non-zero code when validation fails
- Loading branch information
Showing
4 changed files
with
159 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
{ | ||
"stac_version": "1.0.0", | ||
"stac_extensions": [ | ||
"https://stac-extensions.github.io/eo/v1.0.0/schema.json" | ||
], | ||
"type": "Feature", | ||
"bbox": [ | ||
-122.59750209, | ||
37.48803556, | ||
-122.2880486, | ||
37.613537207 | ||
], | ||
"geometry": { | ||
"type": "Polygon", | ||
"coordinates": [ | ||
[ | ||
[ | ||
-122.308150179, | ||
37.488035566 | ||
], | ||
[ | ||
-122.597502109, | ||
37.538869539 | ||
], | ||
[ | ||
-122.576687533, | ||
37.613537207 | ||
], | ||
[ | ||
-122.2880486, | ||
37.562818007 | ||
], | ||
[ | ||
-122.308150179, | ||
37.488035566 | ||
] | ||
] | ||
] | ||
}, | ||
"properties": { | ||
"title": "Full Item", | ||
"description": "A STAC item without an id", | ||
"datetime": null, | ||
"start_datetime": "2016-05-03T13:22:30Z", | ||
"end_datetime": "2016-05-03T13:27:30Z", | ||
"created": "2016-05-04T00:00:01Z", | ||
"updated": "2017-01-01T00:30:55Z", | ||
"license": "various", | ||
"providers": [ | ||
{ | ||
"name": "Remote Data, Inc", | ||
"description": "Producers of awesome spatiotemporal assets", | ||
"roles": [ | ||
"producer", | ||
"processor" | ||
], | ||
"url": "http://remotedata.it" | ||
} | ||
], | ||
"platform": "cool_sat2", | ||
"instruments": [ | ||
"cool_sensor_v1" | ||
] | ||
}, | ||
"links": [ | ||
{ | ||
"rel": "root", | ||
"href": "./catalog.json", | ||
"type": "application/json", | ||
"title": "Example Catalog" | ||
}, | ||
{ | ||
"rel": "parent", | ||
"href": "./catalog.json", | ||
"type": "application/json", | ||
"title": "Example Catalog" | ||
}, | ||
{ | ||
"rel": "alternate", | ||
"type": "text/html", | ||
"href": "http://cool-sat.com/catalog/CS3-20160503_132130_04/CS3-20160503_132130_04.html", | ||
"title": "HTML representation of this STAC Item" | ||
}, | ||
{ | ||
"rel": "license", | ||
"type": "text/html", | ||
"href": "http://remotedata.io/license.html", | ||
"title": "Data License for Remote Data, Inc." | ||
} | ||
], | ||
"assets": { | ||
"analytic": { | ||
"href": "http://cool-sat.com/catalog/CS3-20160503_132130_04/analytic.tif", | ||
"title": "4-Band Analytic", | ||
"eo:bands": [ | ||
{ | ||
"name": "band1" | ||
}, | ||
{ | ||
"name": "band1" | ||
}, | ||
{ | ||
"name": "band2" | ||
}, | ||
{ | ||
"name": "band3" | ||
} | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"id": "examples", | ||
"type": "Catalog", | ||
"title": "Example Catalog", | ||
"stac_version": "1.0.0", | ||
"description": "This is a valid catalog with links to one valid item and one invalid item.", | ||
"links": [ | ||
{ | ||
"rel": "root", | ||
"href": "./catalog.json", | ||
"type": "application/json" | ||
}, | ||
{ | ||
"rel": "item", | ||
"href": "./bad-item.json", | ||
"type": "application/json", | ||
"title": "Invalid item" | ||
}, | ||
{ | ||
"rel": "item", | ||
"href": "./collectionless-item.json", | ||
"type": "application/json", | ||
"title": "Collection with no items (standalone)" | ||
}, | ||
{ | ||
"rel": "self", | ||
"href": "https://raw.githubusercontent.com/radiantearth/stac-spec/v1.0.0/examples/catalog.json", | ||
"type": "application/json" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters