isamplesorg / export_client

Client for the iSamples export service
Apache License 2.0
1 stars 1 forks source link

Integrate duckdb, and use the results to write out a stac item #3

Closed dannymandel closed 4 months ago

dannymandel commented 4 months ago

Write out a stac item modeled after https://github.com/radiantearth/stac-spec/blob/master/examples/simple-item.json

(export_client) mandeld@Daniels-MacBook-Pro export_client % cat /tmp/stac-item.json 
{
    "stac_version": "1.0.0",
    "stac_extensions": [],
    "type": "Feature",
    "id": "iSamples Export Service result ebb35156-f15c-465e-8162-72e672f7e6fe",
    "collection": "iSamples Stac Collection ebb35156-f15c-465e-8162-72e672f7e6fe",
    "geometry": {
        "type": "Polygon",
        "coordinates": [
            [
                [
                    -111.89,
                    31.21
                ],
                [
                    -111.89,
                    39.2242
                ],
                [
                    -106.25,
                    39.2242
                ],
                [
                    -106.25,
                    31.21
                ],
                [
                    -111.89,
                    31.21
                ]
            ]
        ]
    },
    "bbox": [
        -111.89000701904297,
        31.209999084472656,
        -106.25,
        39.22420120239258
    ],
    "properties": {
        "datetime": "2024-05-07T11:31:44.020843Z"
    },
    "description": "iSamples Export Service results intiated at 2024-05-07 11:31:44.020843",
    "links": [
        {
            "rel": "collection",
            "href": "./isamples_export_2024_05_07_11_31_49.jsonl",
            "type": "application/jsonl",
            "title": "iSamples Stac Collection ebb35156-f15c-465e-8162-72e672f7e6fe"
        }
    ],
    "assets": {}
}
dannymandel commented 4 months ago

Looking at it in the STAC browser yields this:

image