• Stars
    star
    140
  • Rank 261,473 (Top 6 %)
  • Language PLpgSQL
  • License
    MIT License
  • Created over 3 years ago
  • Updated 3 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
337
star
2

stac-fastapi

STAC API implementation with FastAPI.
Python
242
star
3

pystac-client

Python client for searching STAC APIs
Python
150
star
4

stactools

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

titiler-pgstac

TiTiler + PgSTAC
Python
77
star
6

stac-server

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

stac-geoparquet

Convert STAC items between JSON, GeoParquet, pgstac, and Delta Lake.
Python
70
star
8

qgis-stac-plugin

QGIS plugin for reading STAC APIs
Python
69
star
9

stac-pydantic

Pydantic data models for the STAC spec
Python
61
star
10

xstac

STAC from xarray
Python
55
star
11

stac-fastapi-pgstac

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

stac-layer

Visualize a STAC Item or Collection on a Leaflet Map
HTML
47
star
13

stac-validator

Validator for the stac-spec
HTML
45
star
14

xpystac

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

stac-fastapi-elasticsearch-opensearch

Elasticsearch backend for stac-fastapi with Opensearch support.
Python
29
star
16

stac-asset

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

stac-vrt

Python
21
star
18

stac-check

Linting and validation tool for STAC assets
HTML
17
star
19

stac-api-validator

A STAC API validation client
Python
17
star
20

stac-terminal

Output info on STAC Items in the terminal
Python
16
star
21

stac4s

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

stac-task

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

stac-node-validator

Simple validator for STAC Items, Catalogs, and Collections. STAC 1.0.0 compliant!
JavaScript
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