Skip to content

Commit 77a9385

Browse files
authored
Merge pull request #52 from jonhealy1/dev
Update to v0.1.3
2 parents 35576bb + dd2929a commit 77a9385

File tree

6 files changed

+405
-13
lines changed

6 files changed

+405
-13
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.
44

55
The format is (loosely) based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).
66

7+
## [v0.1.3] - 2022-01-23 -
8+
### Added
9+
- Check for bloated metadata, too many fields in properties
10+
- Check for geometry field, recommend that STAC not be used for non-spatial data
11+
12+
### Changed
13+
- Changed bloated links check to a boolean to mirror bloated metadata
14+
715
## [v0.1.2] - 2022-01-17 - 2022-01-22
816
### Added
917
- Check for null datetime
Lines changed: 355 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,355 @@
1+
{
2+
"stac_version": "1.0.0",
3+
"stac_extensions": [],
4+
"type": "Feature",
5+
"id": "20201211_223832_CS2",
6+
"bbox": [
7+
172.91173669923782,
8+
1.3438851951615003,
9+
172.95469614953714,
10+
1.3690476620161975
11+
],
12+
"geometry": {
13+
"type": "Polygon",
14+
"coordinates": [
15+
[
16+
[
17+
172.91173669923782,
18+
1.3438851951615003
19+
],
20+
[
21+
172.95469614953714,
22+
1.3438851951615003
23+
],
24+
[
25+
172.95469614953714,
26+
1.3690476620161975
27+
],
28+
[
29+
172.91173669923782,
30+
1.3690476620161975
31+
],
32+
[
33+
172.91173669923782,
34+
1.3438851951615003
35+
]
36+
]
37+
]
38+
},
39+
"properties": {
40+
"title": "Core Item",
41+
"description": "A sample STAC Item that includes examples of all common metadata",
42+
"datetime": null,
43+
"start_datetime": "2020-12-11T22:38:32.125Z",
44+
"end_datetime": "2020-12-11T22:38:32.327Z",
45+
"created": "2020-12-12T01:48:13.725Z",
46+
"updated": "2020-12-12T01:48:13.725Z",
47+
"platform": "cool_sat1",
48+
"instruments": [
49+
"cool_sensor_v1"
50+
],
51+
"constllation": "ion",
52+
"missin": "collection 5624",
53+
"gs": 0.512,
54+
"tile": "Core Item",
55+
"desciption": "A sample STAC Item that includes examples of all common metadata",
56+
"dattime": null,
57+
"startdatetime": "2020-12-11T22:38:32.125Z",
58+
"end_dtetime": "2020-12-11T22:38:32.327Z",
59+
"creted": "2020-12-12T01:48:13.725Z",
60+
"updted": "2020-12-12T01:48:13.725Z",
61+
"platorm": "cool_sat1",
62+
"instrments": [
63+
"cool_sensor_v1"
64+
],
65+
"constellation": "ion",
66+
"mission": "collection 5624",
67+
"gsd": 0.512
68+
},
69+
"collection": "simple-collection",
70+
"links": [
71+
{
72+
"rel": "collection",
73+
"href": "./collection.json",
74+
"type": "application/json",
75+
"title": "Simple Example Collection"
76+
},
77+
{
78+
"rel": "root",
79+
"href": "./collection.json",
80+
"type": "application/json",
81+
"title": "Simple Example Collection"
82+
},
83+
{
84+
"rel": "parent",
85+
"href": "./collection.json",
86+
"type": "application/json",
87+
"title": "Simple Example Collection"
88+
},
89+
{
90+
"rel": "alternate",
91+
"type": "text/html",
92+
"href": "http://remotedata.io/catalog/20201211_223832_CS2/index.html",
93+
"title": "HTML version of this STAC Item"
94+
},
95+
{
96+
"rel": "collection",
97+
"href": "./collection.json",
98+
"type": "application/json",
99+
"title": "Simple Example Collection"
100+
},
101+
{
102+
"rel": "root",
103+
"href": "./collection.json",
104+
"type": "application/json",
105+
"title": "Simple Example Collection"
106+
},
107+
{
108+
"rel": "parent",
109+
"href": "./collection.json",
110+
"type": "application/json",
111+
"title": "Simple Example Collection"
112+
},
113+
{
114+
"rel": "alternate",
115+
"type": "text/html",
116+
"href": "http://remotedata.io/catalog/20201211_223832_CS2/index.html",
117+
"title": "HTML version of this STAC Item"
118+
},
119+
{
120+
"rel": "collection",
121+
"href": "./collection.json",
122+
"type": "application/json",
123+
"title": "Simple Example Collection"
124+
},
125+
{
126+
"rel": "root",
127+
"href": "./collection.json",
128+
"type": "application/json",
129+
"title": "Simple Example Collection"
130+
},
131+
{
132+
"rel": "parent",
133+
"href": "./collection.json",
134+
"type": "application/json",
135+
"title": "Simple Example Collection"
136+
},
137+
{
138+
"rel": "alternate",
139+
"type": "text/html",
140+
"href": "http://remotedata.io/catalog/20201211_223832_CS2/index.html",
141+
"title": "HTML version of this STAC Item"
142+
},
143+
{
144+
"rel": "collection",
145+
"href": "./collection.json",
146+
"type": "application/json",
147+
"title": "Simple Example Collection"
148+
},
149+
{
150+
"rel": "root",
151+
"href": "./collection.json",
152+
"type": "application/json",
153+
"title": "Simple Example Collection"
154+
},
155+
{
156+
"rel": "parent",
157+
"href": "./collection.json",
158+
"type": "application/json",
159+
"title": "Simple Example Collection"
160+
},
161+
{
162+
"rel": "alternate",
163+
"type": "text/html",
164+
"href": "http://remotedata.io/catalog/20201211_223832_CS2/index.html",
165+
"title": "HTML version of this STAC Item"
166+
},
167+
{
168+
"rel": "collection",
169+
"href": "./collection.json",
170+
"type": "application/json",
171+
"title": "Simple Example Collection"
172+
},
173+
{
174+
"rel": "root",
175+
"href": "./collection.json",
176+
"type": "application/json",
177+
"title": "Simple Example Collection"
178+
},
179+
{
180+
"rel": "parent",
181+
"href": "./collection.json",
182+
"type": "application/json",
183+
"title": "Simple Example Collection"
184+
},
185+
{
186+
"rel": "alternate",
187+
"type": "text/html",
188+
"href": "http://remotedata.io/catalog/20201211_223832_CS2/index.html",
189+
"title": "HTML version of this STAC Item"
190+
},
191+
{
192+
"rel": "collection",
193+
"href": "./collection.json",
194+
"type": "application/json",
195+
"title": "Simple Example Collection"
196+
},
197+
{
198+
"rel": "root",
199+
"href": "./collection.json",
200+
"type": "application/json",
201+
"title": "Simple Example Collection"
202+
},
203+
{
204+
"rel": "parent",
205+
"href": "./collection.json",
206+
"type": "application/json",
207+
"title": "Simple Example Collection"
208+
},
209+
{
210+
"rel": "alternate",
211+
"type": "text/html",
212+
"href": "http://remotedata.io/catalog/20201211_223832_CS2/index.html",
213+
"title": "HTML version of this STAC Item"
214+
},
215+
{
216+
"rel": "collection",
217+
"href": "./collection.json",
218+
"type": "application/json",
219+
"title": "Simple Example Collection"
220+
},
221+
{
222+
"rel": "root",
223+
"href": "./collection.json",
224+
"type": "application/json",
225+
"title": "Simple Example Collection"
226+
},
227+
{
228+
"rel": "parent",
229+
"href": "./collection.json",
230+
"type": "application/json",
231+
"title": "Simple Example Collection"
232+
},
233+
{
234+
"rel": "alternate",
235+
"type": "text/html",
236+
"href": "http://remotedata.io/catalog/20201211_223832_CS2/index.html",
237+
"title": "HTML version of this STAC Item"
238+
},
239+
{
240+
"rel": "collection",
241+
"href": "./collection.json",
242+
"type": "application/json",
243+
"title": "Simple Example Collection"
244+
},
245+
{
246+
"rel": "root",
247+
"href": "./collection.json",
248+
"type": "application/json",
249+
"title": "Simple Example Collection"
250+
},
251+
{
252+
"rel": "parent",
253+
"href": "./collection.json",
254+
"type": "application/json",
255+
"title": "Simple Example Collection"
256+
},
257+
{
258+
"rel": "alternate",
259+
"type": "text/html",
260+
"href": "http://remotedata.io/catalog/20201211_223832_CS2/index.html",
261+
"title": "HTML version of this STAC Item"
262+
},
263+
{
264+
"rel": "collection",
265+
"href": "./collection.json",
266+
"type": "application/json",
267+
"title": "Simple Example Collection"
268+
},
269+
{
270+
"rel": "root",
271+
"href": "./collection.json",
272+
"type": "application/json",
273+
"title": "Simple Example Collection"
274+
},
275+
{
276+
"rel": "parent",
277+
"href": "./collection.json",
278+
"type": "application/json",
279+
"title": "Simple Example Collection"
280+
},
281+
{
282+
"rel": "alternate",
283+
"type": "text/html",
284+
"href": "http://remotedata.io/catalog/20201211_223832_CS2/index.html",
285+
"title": "HTML version of this STAC Item"
286+
},
287+
{
288+
"rel": "collection",
289+
"href": "./collection.json",
290+
"type": "application/json",
291+
"title": "Simple Example Collection"
292+
},
293+
{
294+
"rel": "root",
295+
"href": "./collection.json",
296+
"type": "application/json",
297+
"title": "Simple Example Collection"
298+
},
299+
{
300+
"rel": "parent",
301+
"href": "./collection.json",
302+
"type": "application/json",
303+
"title": "Simple Example Collection"
304+
},
305+
{
306+
"rel": "alternate",
307+
"type": "text/html",
308+
"href": "http://remotedata.io/catalog/20201211_223832_CS2/index.html",
309+
"title": "HTML version of this STAC Item"
310+
}
311+
],
312+
"assets": {
313+
"analytic": {
314+
"href": "https://storage.googleapis.com/open-cogs/stac-examples/20201211_223832_CS2_analytic.tif",
315+
"type": "image/tiff; application=geotiff; profile=cloud-optimized",
316+
"title": "4-Band Analytic",
317+
"roles": [
318+
"data"
319+
]
320+
},
321+
"thumbnail": {
322+
"href": "https://storage.googleapis.com/open-cogs/stac-examples/20201211_223832_CS2.jpg",
323+
"title": "Thumbnail",
324+
"type": "image/png",
325+
"roles": [
326+
"thumbnail"
327+
]
328+
},
329+
"visual": {
330+
"href": "https://storage.googleapis.com/open-cogs/stac-examples/20201211_223832_CS2.tif",
331+
"type": "image/tiff; application=geotiff; profile=cloud-optimized",
332+
"title": "3-Band Visual",
333+
"roles": [
334+
"visual"
335+
]
336+
},
337+
"udm": {
338+
"href": "https://storage.googleapis.com/open-cogs/stac-examples/20201211_223832_CS2_analytic_udm.tif",
339+
"title": "Unusable Data Mask",
340+
"type": "image/tiff; application=geotiff;"
341+
},
342+
"json-metadata": {
343+
"href": "http://remotedata.io/catalog/20201211_223832_CS2/extended-metadata.json",
344+
"title": "Extended Metadata",
345+
"type": "application/json",
346+
"roles": [
347+
"metadata"
348+
]
349+
},
350+
"ephemeris": {
351+
"href": "http://cool-sat.com/catalog/20201211_223832_CS2/20201211_223832_CS2.EPH",
352+
"title": "Satellite Ephemeris Metadata"
353+
}
354+
}
355+
}

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"""
33
from setuptools import setup, find_packages
44

5-
__version__ = "0.1.2"
5+
__version__ = "0.1.3"
66

77
with open("README.md", "r") as fh:
88
long_description = fh.read()

stac_check/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def cli_message(linter):
9797

9898
click.secho()
9999

100-
click.secho(f"This object has {linter.num_links} links")
100+
click.secho(f"This object has {len(linter.data['links'])} links")
101101

102102
click.secho()
103103

0 commit comments

Comments
 (0)