Skip to content

Create STAC Collections and Items for some OpenData examples

License

Notifications You must be signed in to change notification settings

pantierra/opendata_to_pgstac

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

STAC Collections/Items for MAXAR / Umbra / Linz OpenData.


Fetch STAC Collection/Items

The goal is to crawl the static collections/items and fetch save in order to ingest them in pgSTAC

# Install dependencies
python -m pip install pip -U
python -m pip install pystac httpx click

# Create STAC collections and items (~30 min)
cd Maxar
python -m generate --collections collections.json --items items.json --with-assets-extension --with-s3-urls

Ingest in pgSTAC

# Install requirement
python -m pip install pypgstac psycopg[pool]

# Launch pgstac database
docker-compose up -d database

# Check the database connection
pypgstac pgready --dsn postgresql://username:[email protected]:5439/postgis

# Ingest Collections and Items
pypgstac load collections collections.json --dsn postgresql://username:[email protected]:5439/postgis --method insert_ignore
pypgstac load items items.json --dsn postgresql://username:[email protected]:5439/postgis --method insert_ignore

About

Create STAC Collections and Items for some OpenData examples

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%