Skip to content

Commit

Permalink
data_type implemented
Browse files Browse the repository at this point in the history
  • Loading branch information
konstntokas committed Jul 2, 2024
1 parent 341f33f commit 664d705
Show file tree
Hide file tree
Showing 15 changed files with 10,821 additions and 149 deletions.
1,273 changes: 1,273 additions & 0 deletions test/cassettes/test_store/StacDataStoreTest.test_describe_data.yaml

Large diffs are not rendered by default.

Large diffs are not rendered by default.

6,902 changes: 6,902 additions & 0 deletions test/cassettes/test_store/StacDataStoreTest.test_get_data_ids_data_type.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -809,4 +809,68 @@ interactions:
status:
code: 200
message: OK
- request:
body: null
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate, br
Connection:
- keep-alive
User-Agent:
- python-requests/2.32.3
method: GET
uri: https://raw.githubusercontent.com/stac-extensions/label/main/examples/multidataset/wrong_data_id
response:
body:
string: '404: Not Found'
headers:
Accept-Ranges:
- bytes
Access-Control-Allow-Origin:
- '*'
Connection:
- keep-alive
Content-Length:
- '14'
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:
- Tue, 02 Jul 2024 09:25:35 GMT
Expires:
- Tue, 02 Jul 2024 09:30:35 GMT
Source-Age:
- '0'
Strict-Transport-Security:
- max-age=31536000
Vary:
- Authorization,Accept-Encoding,Origin
Via:
- 1.1 varnish
X-Cache:
- MISS
X-Cache-Hits:
- '0'
X-Content-Type-Options:
- nosniff
X-Fastly-Request-ID:
- 4fef5bdc6d66a458cc1bd0825e0209a3f924b0aa
X-Frame-Options:
- deny
X-GitHub-Request-Id:
- B3A5:0DCF:1A5899E:1BBB3C4:6683C78E
X-Served-By:
- cache-fra-eddf8230140-FRA
X-Timer:
- S1719912335.970865,VS0,VE152
X-XSS-Protection:
- 1; mode=block
status:
code: 404
message: Not Found
version: 1
366 changes: 366 additions & 0 deletions test/cassettes/test_store/StacDataStoreTest.test_has_data.yaml

Large diffs are not rendered by default.

104 changes: 104 additions & 0 deletions test/cassettes/test_store/StacDataStoreTest.test_search_data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -625,4 +625,108 @@ interactions:
status:
code: 200
message: OK
- request:
body: null
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate, br
Connection:
- keep-alive
User-Agent:
- python-requests/2.32.3
method: GET
uri: https://raw.githubusercontent.com/stac-extensions/label/main/examples/multidataset/zanzibar/znz001.json
response:
body:
string: "{\n \"stac_version\": \"1.0.0-rc.1\",\n \"stac_extensions\": [\n
\ \"https://stac-extensions.github.io/label/v1.0.1/schema.json\",\n \"https://stac-extensions.github.io/version/v1.0.0/schema.json\"\n
\ ],\n \"id\": \"znz001\",\n \"type\": \"Feature\",\n \"bbox\": [\n 39.28919876472999,\n
\ -5.743028283012867,\n 39.31302874892266,\n -5.722212794937691\n
\ ],\n \"geometry\": {\n \"type\": \"Polygon\",\n \"coordinates\":
[\n [\n [\n 39.28919876472999,\n -5.743028283012867\n
\ ],\n [\n 39.31302874892266,\n -5.743028283012867\n
\ ],\n [\n 39.31302874892266,\n -5.722212794937691\n
\ ],\n [\n 39.28919876472999,\n -5.722212794937691\n
\ ]\n ]\n ]\n },\n \"assets\": {\n \"labels\": {\n \"title\":
\"znz001_label\",\n \"href\": \"https://www.dropbox.com/sh/ct3s1x2a846x3yl/AAARCAOqhcRdoU7ULOb9GJl9a/grid_001.geojson?dl=1\",\n
\ \"type\": \"application/geo+json\"\n },\n \"raster\": {\n \"title\":
\"znz001_previewcog\",\n \"href\": \"https://oin-hotosm.s3.amazonaws.com/5afeda152b6a08001185f11a/0/5afeda152b6a08001185f11b.tif\",\n
\ \"type\": \"image/tiff; application=geotiff; profile=cloud-optimized\"\n
\ },\n \"thumbnail\": {\n \"title\": \"znz001_thumbnail\",\n \"href\":
\"https://oin-hotosm.s3.amazonaws.com/5afeda152b6a08001185f11a/0/5afeda152b6a08001185f11b.png\",\n
\ \"type\": \"image/png\"\n }\n },\n \"properties\": {\n \"datetime\":
\"2019-04-23T00:00:00Z\",\n \"license\": \"CC-BY-4.0\",\n \"label:properties\":
[\n \"building\",\n \"condition\"\n ],\n \"label:description\":
\"building footprints manually labeled and classified according to building
completion status\",\n \"label:tasks\": [\n \"segmentation\"\n ],\n
\ \"label:type\": \"vector\",\n \"label:methods\": [\n \"manual\"\n
\ ],\n \"version\": \"1\",\n \"label:classes\": [\n {\n \"name\":
\"building\",\n \"classes\": [\n \"yes\"\n ]\n },\n
\ {\n \"name\": \"condition\",\n \"classes\": [\n \"Complete\",\n
\ \"Incomplete\",\n \"Foundation\"\n ]\n }\n
\ ],\n \"label:overviews\": [\n {\n \"property_key\": \"building\",\n
\ \"counts\": [\n {\n \"name\": \"yes\",\n \"count\":
4440\n }\n ]\n }\n ]\n },\n \"links\": [\n {\n
\ \"rel\": \"root\",\n \"href\": \"../catalog.json\"\n },\n {\n
\ \"rel\": \"parent\",\n \"href\": \"collection.json\"\n },\n
\ {\n \"rel\": \"collection\",\n \"href\": \"collection.json\"\n
\ },\n {\n \"rel\": \"source\",\n \"href\": \"https://oin-hotosm.s3.amazonaws.com/5afeda152b6a08001185f11a/0/5afeda152b6a08001185f11b.tif\",\n
\ \"title\": \"The source imagery these building labels were derived from\",\n
\ \"label:assets\": [\n \"building\"\n ]\n }\n ]\n}"
headers:
Accept-Ranges:
- bytes
Access-Control-Allow-Origin:
- '*'
Cache-Control:
- max-age=300
Connection:
- keep-alive
Content-Encoding:
- gzip
Content-Length:
- '914'
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:
- Tue, 02 Jul 2024 09:25:39 GMT
ETag:
- W/"1923ecd4bc9d501e9a4f26486395e7fcd45f9ef272ada43ce0b0560471e4a3da"
Expires:
- Tue, 02 Jul 2024 09:30:39 GMT
Source-Age:
- '0'
Strict-Transport-Security:
- max-age=31536000
Vary:
- Authorization,Accept-Encoding,Origin
Via:
- 1.1 varnish
X-Cache:
- MISS
X-Cache-Hits:
- '0'
X-Content-Type-Options:
- nosniff
X-Fastly-Request-ID:
- 1e57c272f8d86910f87dc488d4cd0d5afc124f20
X-Frame-Options:
- deny
X-GitHub-Request-Id:
- C723:0EB5:5A59B7:5F798E:6683C792
X-Served-By:
- cache-fra-eddf8230127-FRA
X-Timer:
- S1719912339.989660,VS0,VE167
X-XSS-Protection:
- 1; mode=block
status:
code: 200
message: OK
version: 1
Loading

0 comments on commit 664d705

Please sign in to comment.