Skip to content

Create/Add geoparquet files #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/geoparquet.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
stac geoparquet-items create disasters/ disasters/stac-items.parquet --collection disasters/collection.json --selflink --baseurl https://www.planet.com/data/stac/disasters/
stac geoparquet-items create education/bloom/ education/bloom/stac-items.parquet --collection education/bloom/collection.json --selflink --baseurl https://www.planet.com/data/stac/education/bloom/
stac geoparquet-items create fusion/14N/29E-188N/ fusion/14N/29E-188N/stac-items.parquet --collection fusion/14N/29E-188N/collection.json --selflink --baseurl https://www.planet.com/data/stac/fusion/14N/29E-188N/
stac geoparquet-items create open-skysat-data/ open-skysat-data/stac-items.parquet --collection open-skysat-data/collection.json --selflink --baseurl https://www.planet.com/data/stac/open-skysat-data/
stac geoparquet-items create spacenet7/sn7_test_source/ spacenet7/sn7_test_source/stac-items.parquet --collection spacenet7/sn7_test_source/collection.json --selflink --baseurl https://www.planet.com/data/stac/spacenet7/sn7_test_source/
stac geoparquet-items create spacenet7/sn7_train_labels/ spacenet7/sn7_train_labels/stac-items.parquet --collection spacenet7/sn7_train_labels/collection.json --selflink --baseurl https://www.planet.com/data/stac/spacenet7/sn7_train_labels/
stac geoparquet-items create spacenet7/sn7_train_source/ spacenet7/sn7_train_source/stac-items.parquet --collection spacenet7/sn7_train_source/collection.json --selflink --baseurl https://www.planet.com/data/stac/spacenet7/sn7_train_source/
20 changes: 20 additions & 0 deletions .github/workflows/geoparquet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Create GeoParquet files

on:
push:
tags: true

jobs:
create:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.11"
- run: pip install stactools-geoparquet-items
- run: cd stac
- run: bash ../.github/workflows/geoparquet.sh
- uses: stefanzweifel/git-auto-commit-action@v4.16.0
with:
commit_message: Update GeoParquet files
12 changes: 11 additions & 1 deletion stac/disasters/collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,5 +104,15 @@
],
"url": "https://storage.googleapis.com/pdd-stac/"
}
]
],
"assets": {
"geoparquet-items": {
"href": "stac-items.parquet",
"type": "application/x-parquet",
"roles": [
"stac-items"
],
"title": "GeoParquet STAC Items"
}
}
}
Binary file added stac/disasters/stac-items.parquet
Binary file not shown.
12 changes: 11 additions & 1 deletion stac/education/bloom/collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,15 @@
]
}
},
"license": "CC-BY-SA-4.0"
"license": "CC-BY-SA-4.0",
"assets": {
"geoparquet-items": {
"href": "stac-items.parquet",
"type": "application/x-parquet",
"roles": [
"stac-items"
],
"title": "GeoParquet STAC Items"
}
}
}
Binary file added stac/education/bloom/stac-items.parquet
Binary file not shown.
12 changes: 11 additions & 1 deletion stac/fusion/14N/29E-188N/collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -1894,5 +1894,15 @@
],
"url": "https://storage.googleapis.com/open-cogs/planet-stac/"
}
]
],
"assets": {
"geoparquet-items": {
"href": "stac-items.parquet",
"type": "application/x-parquet",
"roles": [
"stac-items"
],
"title": "GeoParquet STAC Items"
}
}
}
Binary file added stac/fusion/14N/29E-188N/stac-items.parquet
Binary file not shown.
16 changes: 13 additions & 3 deletions stac/open-skysat-data/collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
{
"href": "./20201211_103040_ssc12_u0001/20201211_103040_ssc12_u0001.json",
"rel": "item",
"title": "Ouro-Daiébé, Mopti, Mali",
"title": "Ouro-Dai\u00e9b\u00e9, Mopti, Mali",
"type": "application/json"
},
{
Expand All @@ -70,7 +70,7 @@
{
"href": "./cocabamba-peru/catalog.json",
"rel": "child",
"title": "Cocabamba, Perú",
"title": "Cocabamba, Per\u00fa",
"type": "application/json"
},
{
Expand Down Expand Up @@ -102,5 +102,15 @@
],
"url": "https://www.planet.com"
}
]
],
"assets": {
"geoparquet-items": {
"href": "stac-items.parquet",
"type": "application/x-parquet",
"roles": [
"stac-items"
],
"title": "GeoParquet STAC Items"
}
}
}
Binary file added stac/open-skysat-data/stac-items.parquet
Binary file not shown.
12 changes: 11 additions & 1 deletion stac/spacenet7/sn7_test_source/collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -2382,5 +2382,15 @@
],
"url": "https://www.spacenet.ai"
}
]
],
"assets": {
"geoparquet-items": {
"href": "stac-items.parquet",
"type": "application/x-parquet",
"roles": [
"stac-items"
],
"title": "GeoParquet STAC Items"
}
}
}
Binary file added stac/spacenet7/sn7_test_source/stac-items.parquet
Binary file not shown.
12 changes: 11 additions & 1 deletion stac/spacenet7/sn7_train_labels/collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -7167,5 +7167,15 @@
],
"url": "https://www.spacenet.ai"
}
]
],
"assets": {
"geoparquet-items": {
"href": "stac-items.parquet",
"type": "application/x-parquet",
"roles": [
"stac-items"
],
"title": "GeoParquet STAC Items"
}
}
}
Binary file not shown.
12 changes: 11 additions & 1 deletion stac/spacenet7/sn7_train_source/collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -7167,5 +7167,15 @@
],
"url": "https://www.spacenet.ai"
}
]
],
"assets": {
"geoparquet-items": {
"href": "stac-items.parquet",
"type": "application/x-parquet",
"roles": [
"stac-items"
],
"title": "GeoParquet STAC Items"
}
}
}
Binary file not shown.