File: TestValidate.test_validate_examples%5Bexample27%5D.yaml

package info (click to toggle)
pystac 1.13.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 19,904 kB
  • sloc: python: 24,370; makefile: 124; sh: 7
file content (257 lines) | stat: -rw-r--r-- 14,596 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
interactions:
- request:
    body: null
    headers:
      Connection:
      - close
      Host:
      - raw.githubusercontent.com
      User-Agent:
      - Python-urllib/3.12
    method: GET
    uri: https://raw.githubusercontent.com/radiantearth/stac-spec/v0.8.1/item-spec/json-schema/item.json
  response:
    body:
      string: "{\n  \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n  \"$id\":
        \"item.json#\",\n  \"title\": \"STAC Item\",\n  \"type\": \"object\",\n  \"description\":
        \"This object represents the metadata for an item in a SpatioTemporal Asset
        Catalog.\",\n  \"additionalProperties\": true,\n  \"allOf\": [\n    {\n      \"$ref\":
        \"#/definitions/core\"\n    }\n  ],\n  \"definitions\": {\n    \"core\": {\n
        \     \"allOf\": [\n        {\n          \"$ref\": \"https://geojson.org/schema/Feature.json\"\n
        \       },\n        {\n          \"type\": \"object\",\n          \"required\":
        [\n            \"stac_version\",\n            \"id\",\n            \"links\",\n
        \           \"assets\",\n            \"bbox\",\n            \"properties\"\n
        \         ],\n          \"properties\": {\n            \"stac_version\": {\n
        \             \"title\": \"STAC version\",\n              \"type\": \"string\",\n
        \             \"const\": \"0.8.1\"\n            },\n            \"stac_extensions\":
        {\n              \"title\": \"STAC extensions\",\n              \"type\":
        \"array\",\n              \"uniqueItems\": true,\n              \"items\":
        {\n                \"anyOf\": [\n                  {\n                    \"title\":
        \"Reference to a JSON Schema\",\n                    \"type\": \"string\",\n
        \                   \"format\": \"uri\"\n                  },\n                  {\n
        \                   \"title\": \"Reference to a core extension\",\n                    \"type\":
        \"string\",\n                    \"enum\": [\n                      \"checksum\",\n
        \                     \"cube\",\n                      \"datetime-range\",\n
        \                     \"eo\",\n                      \"label\",\n                      \"pointcloud\",\n
        \                     \"sar\",\n                      \"scientific\"\n                    ]\n
        \                 }\n                ]\n              }\n            },\n
        \           \"id\": {\n              \"title\": \"Provider ID\",\n              \"description\":
        \"Provider item ID\",\n              \"type\": \"string\"\n            },\n
        \           \"bbox\": {\n              \"type\": \"array\",\n              \"minItems\":
        4,\n              \"items\": {\n                \"type\": \"number\"\n              }\n
        \           },\n            \"links\": {\n              \"title\": \"Item
        links\",\n              \"description\": \"Links to item relations\",\n              \"type\":
        \"array\",\n              \"items\": {\n                \"$ref\": \"#/definitions/link\"\n
        \             }\n            },\n            \"assets\": {\n              \"title\":
        \"Asset links\",\n              \"description\": \"Links to assets\",\n              \"type\":
        \"object\",\n              \"patternProperties\": {\n                \".+\":
        {\n                  \"$ref\": \"#/definitions/asset\"\n                }\n
        \             },\n              \"additionalProperties\": false\n            },\n
        \           \"properties\": {\n              \"type\": \"object\",\n              \"required\":
        [\n                \"datetime\"\n              ],\n              \"properties\":
        {\n                \"datetime\": {\n                  \"title\": \"Date and
        Time\",\n                  \"description\": \"The searchable date/time of
        the assets, in UTC (Formatted in RFC 3339) \",\n                  \"type\":
        \"string\",\n                  \"format\": \"date-time\"\n                },\n
        \               \"title\": {\n                  \"title\": \"Item Title\",\n
        \                 \"description\": \"A human-readable title describing the
        item.\",\n                  \"type\": \"string\"\n                },\n                \"license\":
        {\n                  \"title\": \"Item Licenses\",\n                  \"type\":
        \"string\"\n                },\n                \"providers\": {\n                  \"type\":
        \"array\",\n                  \"items\": {\n                    \"properties\":
        {\n                      \"name\": {\n                        \"title\": \"Organization
        name\",\n                        \"type\": \"string\"\n                      },\n
        \                     \"description\": {\n                        \"title\":
        \"Provider description\",\n                        \"type\": \"string\"\n
        \                     },\n                      \"roles\": {\n                        \"title\":
        \"Organization roles\",\n                        \"type\": \"array\",\n                        \"items\":
        {\n                          \"type\": \"string\",\n                          \"enum\":
        [\n                            \"producer\",\n                            \"licensor\",\n
        \                           \"processor\",\n                            \"host\"\n
        \                         ]\n                        }\n                      },\n
        \                     \"url\": {\n                        \"title\": \"Homepage\",\n
        \                       \"type\": \"string\",\n                        \"format\":
        \"url\"\n                      }\n                    }\n                  }\n
        \               },\n                \"created\": {\n                  \"title\":
        \"Metadata created at\",\n                  \"type\": \"string\",\n                  \"format\":
        \"date-time\"\n                },\n                \"updated\": {\n                  \"title\":
        \"Metadata updated at\",\n                  \"type\": \"string\",\n                  \"format\":
        \"date-time\"\n                }\n              }\n            },\n            \"collection\":
        {\n              \"title\": \"Collection ID\",\n              \"description\":
        \"The ID of the STAC Collection this Item references to.\",\n              \"type\":
        \"string\"\n            }\n          }\n        }\n      ]\n    },\n    \"link\":
        {\n      \"type\": \"object\",\n      \"required\": [\n        \"rel\",\n
        \       \"href\"\n      ],\n      \"properties\": {\n        \"href\": {\n
        \         \"title\": \"Link reference\",\n          \"type\": \"string\"\n
        \       },\n        \"rel\": {\n          \"title\": \"Link relation type\",\n
        \         \"type\": \"string\"\n        },\n        \"type\": {\n          \"title\":
        \"Link type\",\n          \"type\": \"string\"\n        },\n        \"title\":
        {\n          \"title\": \"Link title\",\n          \"type\": \"string\"\n
        \       }\n      }\n    },\n    \"asset\": {\n      \"type\": \"object\",\n
        \     \"required\": [\n        \"href\"\n      ],\n      \"properties\": {\n
        \       \"href\": {\n          \"title\": \"Asset reference\",\n          \"type\":
        \"string\"\n        },\n        \"title\": {\n          \"title\": \"Asset
        title\",\n          \"type\": \"string\"\n        },\n        \"type\": {\n
        \         \"title\": \"Asset type\",\n          \"type\": \"string\"\n        }\n
        \     }\n    }\n  }\n}\n"
    headers:
      Accept-Ranges:
      - bytes
      Access-Control-Allow-Origin:
      - '*'
      Cache-Control:
      - max-age=300
      Connection:
      - close
      Content-Length:
      - '6074'
      Content-Security-Policy:
      - default-src 'none'; style-src 'unsafe-inline'; sandbox
      Content-Type:
      - text/plain; charset=utf-8
      Cross-Origin-Resource-Policy:
      - cross-origin
      Date:
      - Thu, 23 Jan 2025 15:04:35 GMT
      ETag:
      - '"4e24763d74f0d463b0cb6c63fc099e0b59447c7a049b93ffda4c6eb9eb54ae95"'
      Expires:
      - Thu, 23 Jan 2025 15:09:35 GMT
      Source-Age:
      - '5'
      Strict-Transport-Security:
      - max-age=31536000
      Vary:
      - Authorization,Accept-Encoding,Origin
      Via:
      - 1.1 varnish
      X-Cache:
      - HIT
      X-Cache-Hits:
      - '1'
      X-Content-Type-Options:
      - nosniff
      X-Fastly-Request-ID:
      - 49f0fe4f6865dab4ec301ed313a8862fa231703f
      X-Frame-Options:
      - deny
      X-GitHub-Request-Id:
      - B1E1:1806BD:732C3:8041C:67925A7E
      X-Served-By:
      - cache-den-kden1300025-DEN
      X-Timer:
      - S1737644676.692171,VS0,VE1
      X-XSS-Protection:
      - 1; mode=block
    status:
      code: 200
      message: OK
- request:
    body: null
    headers:
      Connection:
      - close
      Host:
      - raw.githubusercontent.com
      User-Agent:
      - Python-urllib/3.12
    method: GET
    uri: https://raw.githubusercontent.com/radiantearth/stac-spec/v0.8.1/extensions/eo/json-schema/schema.json
  response:
    body:
      string: "{\n  \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n  \"$id\":
        \"schema.json#\",\n  \"title\": \"EO Extension\",\n  \"description\": \"STAC
        EO Extension to a STAC Item.\",\n  \"allOf\": [\n    {\n      \"$ref\": \"../../../item-spec/json-schema/item.json#/definitions/core\"\n
        \   },\n    {\n      \"$ref\": \"#/definitions/eo\"\n    }\n  ],\n  \"definitions\":
        {\n    \"eo\": {\n      \"type\": \"object\",\n      \"required\": [\n        \"properties\"\n
        \     ],\n      \"properties\": {\n        \"properties\": {\n          \"type\":
        \"object\",\n          \"required\": [\n            \"eo:gsd\",\n            \"eo:platform\",\n
        \           \"eo:instrument\",\n            \"eo:bands\"\n          ],\n          \"properties\":
        {\n            \"eo:gsd\": {\n              \"title\": \"Ground Sample Distance\",\n
        \             \"type\": \"number\"\n            },\n            \"eo:platform\":
        {\n              \"title\": \"Platform\",\n              \"type\": \"string\"\n
        \           },\n            \"eo:constellation\": {\n              \"title\":
        \"Constellation\",\n              \"type\": \"string\"\n            },\n            \"eo:instrument\":
        {\n              \"title\": \"Instrument\",\n              \"type\": \"string\"\n
        \           },\n            \"eo:bands\": {\n              \"title\": \"Bands\",\n
        \             \"type\": \"array\",\n              \"items\": {\n                \"properties\":
        {\n                  \"name\": {\n                    \"title\": \"Name of
        the band\",\n                    \"type\": \"string\"\n                  },\n
        \                 \"common_name\": {\n                    \"title\": \"Common
        Name of the band\",\n                    \"type\": \"string\"\n                  },\n
        \                 \"gsd\": {\n                    \"title\": \"Ground Sample
        Distance\",\n                    \"type\": \"number\"\n                  },\n
        \                 \"accuracy\": {\n                    \"title\": \"Accuracy\",\n
        \                   \"type\": \"number\"\n                  },\n                  \"center_wavelength\":
        {\n                    \"title\": \"Center Wavelength\",\n                    \"type\":
        \"number\"\n                  },\n                  \"full_width_half_max\":
        {\n                    \"title\": \"Full Width Half Max (FWHM)\",\n                    \"type\":
        \"number\"\n                  }\n                }\n              }\n            },\n
        \           \"eo:epsg\": {\n              \"title\": \"EPSG code\",\n              \"type\":
        [\n                \"integer\",\n                \"null\"\n              ]\n
        \           },\n            \"eo:cloud_cover\": {\n              \"title\":
        \"Cloud Cover\",\n              \"type\": \"number\",\n              \"minimum\":
        0,\n              \"maximum\": 100\n            },\n            \"eo:off_nadir\":
        {\n              \"title\": \"Off Nadir\",\n              \"type\": \"number\",\n
        \             \"minimum\": 0,\n              \"maximum\": 90\n            },\n
        \           \"eo:azimuth\": {\n              \"title\": \"Azimuth\",\n              \"type\":
        \"number\",\n              \"minimum\": 0,\n              \"maximum\": 360\n
        \           },\n            \"eo:sun_azimuth\": {\n              \"title\":
        \"Sun Azimuth\",\n              \"type\": \"number\",\n              \"minimum\":
        0,\n              \"maximum\": 360\n            },\n            \"eo:sun_elevation\":
        {\n              \"title\": \"Sun Elevation\",\n              \"type\": \"number\",\n
        \             \"minimum\": 0,\n              \"maximum\": 90\n            }\n
        \         }\n        }\n      }\n    }\n  }\n}"
    headers:
      Accept-Ranges:
      - bytes
      Access-Control-Allow-Origin:
      - '*'
      Cache-Control:
      - max-age=300
      Connection:
      - close
      Content-Length:
      - '3245'
      Content-Security-Policy:
      - default-src 'none'; style-src 'unsafe-inline'; sandbox
      Content-Type:
      - text/plain; charset=utf-8
      Cross-Origin-Resource-Policy:
      - cross-origin
      Date:
      - Thu, 23 Jan 2025 15:04:35 GMT
      ETag:
      - '"c8576d5ea3fcee4039dcddbdcf9e59fed3f3086419a33aa96f18f4617203b76d"'
      Expires:
      - Thu, 23 Jan 2025 15:09:35 GMT
      Source-Age:
      - '5'
      Strict-Transport-Security:
      - max-age=31536000
      Vary:
      - Authorization,Accept-Encoding,Origin
      Via:
      - 1.1 varnish
      X-Cache:
      - HIT
      X-Cache-Hits:
      - '1'
      X-Content-Type-Options:
      - nosniff
      X-Fastly-Request-ID:
      - 5142c1243077c63e774b548331d913c311c0fa32
      X-Frame-Options:
      - deny
      X-GitHub-Request-Id:
      - B45D:1806BD:732D2:80430:67925A7C
      X-Served-By:
      - cache-den-kden1300061-DEN
      X-Timer:
      - S1737644676.711867,VS0,VE1
      X-XSS-Protection:
      - 1; mode=block
    status:
      code: 200
      message: OK
version: 1