WORK IN PROGRESS
The following steps you usually only need to do once:
- Install Python 3.9 or later, GDAL 3.8 or later, tippecanoe, and AWS CLI
- Clone the fiboa CLI repository:
git clone https://github.com/fiboa/cli
andcd cli
to switch into the new folder. - Install the dependencies of the fiboa cli repo and the CLI itself:
pip install -e .
- Check whether the CLI works:
fiboa --version
- Create a converter using fiboa CLI converters, see the template. Create a PR for it.
- Register at Source Cooperative and email
hello@source.coop
for permission to publish in the fiboa organization. - Create a new repository in the fiboa organization, e.g.
@fiboa/xx-yy
. You'll find it athttps://beta.source.coop/fiboa/xx-yy/
- Create a new folder for your data, e.g. data
mkdir data
- Create a README file at
data/README.md
and a license file atdata/LICENSE.txt
An example repository with a README etc. can be found here: https://beta.source.coop/fiboa/de-nrw/
- Go to the parent folder of the folder that contains your data (e.g.
data
) in CLI - Run the converter, e.g.
xx_yy
:fiboa convert xx_yy -o data/xx-yy.parquet -h https://beta.source.coop/fiboa/xx-yy/ --collection
- Validate the result, e.g.
fiboa validate data/xx-yy.parquet --data
- Move the collection.json into a stac folder:
mkdir data/stac
andmv data/collection.json data/stac
- Update the README file at
data/README.md
- Create PMTiles file:
ogr2ogr -t_srs EPSG:4326 geo.json data/xx-yy.parquet
andtippecanoe -zg --projection=EPSG:4326 -o data/xx-yy.pmtiles -l xx-yy geo.json --drop-densest-as-needed
- Edit the STAC Collection, update the paths, and everything else that you want to customize. Also don't forget to add a link to the PMTiles file using the corresponding STAC extension.
- Create new credentials for S3, at:
https://beta.source.coop/repositories/fiboa/xx-yy/download/
- Copy the credentials.
Windows users may need to change the commands slightly. Use e.g.
$env:AWS_DEFAULT_REGION="us-west-2"
instead ofexport AWS_DEFAULT_REGION=us-west-2
- Upload to AWS:
aws s3 sync data s3://us-west-2.opendata.source.coop/fiboa/xx-yy/
If you've created and published a STAC Collection for your dataset, make sure to add it to the STAC catalog that combines all datasets into a single STAC catalog It will also publish your dataset to the fiboa data overview page. Create a PR to add your STAC Collection as child link to the following file: https://github.com/fiboa/fiboa.github.io/blob/main/stac/catalog.json See also the README for an alternative.