• Stars
    star
    119
  • Rank 288,560 (Top 6 %)
  • Language PLpgSQL
  • License
    MIT License
  • Created about 3 years ago
  • Updated 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Schema, functions and a python library for storing and accessing STAC collections and items in PostgreSQL

PostgreSQL schema and functions for Spatio-Temporal Asset Catalog (STAC)

Test Package version License


Documentation: https://stac-utils.github.io/pgstac/

Source Code: https://github.com/stac-utils/pgstac


PgSTACΒ is a set of SQL functions and schema to build highly performant databases for Spatio-Temporal Asset Catalogs (STAC). The project also providesΒ pypgstac (a Python module) to help with database migrations and document ingestion (collections and items).

PgSTAC provides functionality for STAC Filters, CQL2 search, and utilities to help manage the indexing and partitioning of STAC Collections and Items.

PgSTAC is used in production to scale to hundreds of millions of STAC items. PgSTAC implements core data models and functions to provide a STAC API from a PostgreSQL database. PgSTAC is entirely within the database and does not provide an HTTP-facing API. TheΒ Stac FastAPIΒ PgSTAC backend andΒ FranklinΒ can be used to expose a PgSTAC catalog. Integrating PgSTAC with any other language with PostgreSQL drivers is also possible.

PgSTAC Documentation:Β https://stac-utils.github.io/pgstac/pgstac

pyPgSTAC Documentation:Β https://stac-utils.github.io/pgstac/pypgstac

Project structure

/
 β”œβ”€β”€ src/pypgstac           - pyPgSTAC python module
 β”œβ”€β”€ src/pypgstac/tests/    - pyPgSTAC tests
 β”œβ”€β”€ scripts/               - scripts to set up the environment, create migrations, and run tests
 β”œβ”€β”€ src/pgstac/sql/        - PgSTAC SQL code
 β”œβ”€β”€ src/pgstac/migrations/ - Migrations for incremental upgrades
 └── src/pgstac/tests/      - test suite

Contribution & Development

See CONTRIBUTING.md

License

See LICENSE

Authors

See contributors for a listing of individual contributors.

Changes

See CHANGELOG.md.

More Repositories

1

pystac

Python library for working with any SpatioTemporal Asset Catalog (STAC)
Python
312
star
2

stac-fastapi

STAC API implementation with FastAPI.
Python
214
star
3

pystac-client

Python client for searching STAC APIs
Python
141
star
4

stactools

Command line utility and Python library for STAC
Python
103
star
5

titiler-pgstac

TiTiler + PgSTAC
Python
66
star
6

stac-server

A Node-based STAC API, AWS Serverless, OpenSearch
JavaScript
64
star
7

qgis-stac-plugin

QGIS plugin for reading STAC APIs
Python
63
star
8

xstac

STAC from xarray
Python
51
star
9

stac-pydantic

Pydantic data models for the STAC spec
Python
49
star
10

stac-layer

Visualize a STAC Item or Collection on a Leaflet Map
HTML
45
star
11

stac-validator

Validator for the stac-spec
HTML
43
star
12

stac-geoparquet

Python
43
star
13

xpystac

For extending xarray.open_dataset to accept pystac objects
Python
30
star
14

stac-fastapi-pgstac

PostgreSQL backend for stac-fastapi using pgstac (https://github.com/stac-utils/pgstac)
Python
29
star
15

stac-asset

Read and download STAC Assets, using a variety of authentication schemes
Python
21
star
16

stac-vrt

Python
21
star
17

stac-fastapi-elasticsearch-opensearch

Elasticsearch backend for stac-fastapi with Opensearch support.
Python
20
star
18

stac-check

Linting and validation tool for STAC assets
HTML
15
star
19

stac4s

a scala library with primitives to build applications using the SpatioTemporal Asset Catalogs specification
Scala
15
star
20

stac-task

Provides a class interface for running custom algorithms on STAC ItemCollections
Python
14
star
21

stac-terminal

Output info on STAC Items in the terminal
Python
13
star
22

stac-node-validator

Simple validator for STAC Items, Catalogs, and Collections. STAC 1.0.0 compliant!
JavaScript
13
star
23

stac-api-validator

A STAC API validation client
Python
13
star
24

stac-fastapi-sqlalchemy

PostgreSQL backend for stac-fastapi using SQLAlchemy
Python
9
star
25

stac-api-benchmark

STAC API Benchmark
Python
8
star
26

stac-index

A service that lists all available and registered STAC catalogs and APIs.
JavaScript
6
star
27

stac-migrate

A tool to migrate Items, Catalogs and Collections from old versions to the most recent one.
JavaScript
6
star
28

stac-crosswalks

Common metadata crosswalks to help people map from their existing data into STAC
6
star
29

stac-fields

A minimal STAC library that contains a list of STAC fields with some metadata and helper functions for styling as HTML.
JavaScript
6
star
30

stac-table

Python
5
star
31

stac-ecosystem

Collaboration space for the broader STAC software and data ecosystem
5
star
32

stac-sentinel

STAC Collections and Items for Sentinel data
Python
3
star
33

developer-guide

Developer guide for stac-utils
Python
2
star
34

stac-examples

A small repository of real world STAC collections and items, to let users get a sense of how STAC is used, without having to dive deep into huge catalogs.
2
star