4
4
5
5
[ read the docs] ( https://stac-validator.readthedocs.io/en/latest/ )
6
6
7
-
8
- ## Validate STAC json files against the [ STAC spec] ( https://github.com/radiantearth/stac-spec ) .
9
-
10
-
7
+ ## Validate STAC json files against the [ STAC spec] ( https://github.com/radiantearth/stac-spec ) .
11
8
12
9
``` bash
13
10
stac-validator https://raw.githubusercontent.com/radiantearth/stac-spec/master/examples/extended-item.json
@@ -60,7 +57,6 @@ or for local development
60
57
pip install -e ' .[dev]'
61
58
```
62
59
63
-
64
60
The [ Makefile] ( ./Makefile ) has convenience commands if Make is installed.
65
61
66
62
``` bash
@@ -81,7 +77,7 @@ make help
81
77
| 1.0.0-rc.3 |
82
78
| 1.0.0-rc.4 |
83
79
| 1.0.0 |
84
-
80
+ | 1.1.0 |
85
81
86
82
---
87
83
@@ -146,7 +142,9 @@ docker run stac-validator https://raw.githubusercontent.com/stac-extensions/proj
146
142
` ` `
147
143
148
144
# # AWS (CDK)
145
+
149
146
An example [AWS CDK](https://aws.amazon.com/cdk/) deployment is available in [cdk-deployment](./cdk-deployment/README.md)
147
+
150
148
` ` ` bash
151
149
cd cdk-deployment
152
150
cdk diff
@@ -201,29 +199,29 @@ print(stac.message)
201
199
` ` `
202
200
203
201
** Dictionary**
204
-
202
+
205
203
` ` ` python
206
204
from stac_validator import stac_validator
207
-
205
+
208
206
stac = stac_validator.StacValidate ()
209
207
stac.validate_dict(dictionary)
210
208
print(stac.message)
211
209
` ` `
212
210
213
211
** Item Collection**
214
-
212
+
215
213
` ` ` python
216
214
from stac_validator import stac_validator
217
-
215
+
218
216
stac = stac_validator.StacValidate ()
219
217
stac.validate_item_collection_dict(item_collection_dict)
220
218
print(stac.message)
221
219
` ` `
220
+
222
221
---
223
222
224
223
# Testing
225
224
226
-
227
225
` ` ` bash
228
226
make test
229
227
# or
@@ -233,6 +231,7 @@ pytest -v
233
231
See the [tests](./tests/test_stac_validator.py) files for examples on different usages.
234
232
235
233
---
234
+
236
235
# Additional Examples
237
236
238
237
** --core**
@@ -292,7 +291,7 @@ stac-validator https://raw.githubusercontent.com/radiantearth/stac-spec/master/e
292
291
}
293
292
]
294
293
` ` `
295
-
294
+
296
295
** --recursive**
297
296
298
297
` ` ` bash
@@ -324,8 +323,9 @@ stac-validator https://spot-canada-ortho.s3.amazonaws.com/catalog.json --recursi
324
323
}
325
324
]
326
325
` ` `
326
+
327
327
** --item-collection**
328
328
329
329
` ` ` bash
330
330
stac-validator https://earth-search.aws.element84.com/v0/collections/sentinel-s2-l2a/items --item-collection --pages 2
331
- ` ` `
331
+ ` ` `
0 commit comments