Skip to content
#

spatial-database

Here are 11 public repositories matching this topic...

Curated, example-driven reference for 92 PostGIS ST_* functions and spatial operators. Every entry has a SQL example with its real result, psycopg and GeoAlchemy2 snippets, SRID gotchas, GiST index behaviour and common mistakes. Search from the terminal, or generate a single self-contained searchable HTML page.

  • Updated Jul 19, 2026
  • Python

Generate GeoAlchemy2 and SQLAlchemy 2.0 declarative models from a live PostGIS database, complete with geometry types, SRIDs, spatial indexes, enums and foreign-key relationships — plus typed spatial query helpers for ST_DWithin, KNN and bounding-box searches. Works from a live DSN or a shareable JSON schema description.

  • Updated Jul 19, 2026
  • Python

Diagnose PostGIS performance problems from a PostgreSQL EXPLAIN plan. Parses JSON and text EXPLAIN (ANALYZE, BUFFERS) output, runs ten spatial rules — missing GiST index, ST_Distance instead of ST_DWithin, loose bounding-box rechecks, un-indexed KNN, SRID transforms defeating the index — and prints an annotated tree, JSON or Markdown.

  • Updated Jul 19, 2026
  • Python

Pytest plugin providing an ephemeral PostGIS database and deterministic, realistic spatial fixture data. Seeded generators for clustered points, routes and polygons across multiple CRSs, ready-made datasets with GiST/BRIN DDL, a COPY bulk loader, an edge-case catalogue, and spatial assertion helpers including EXPLAIN index checks.

  • Updated Jul 19, 2026
  • Python

Improve this page

Add a description, image, and links to the spatial-database topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the spatial-database topic, visit your repo's landing page and select "manage topics."

Learn more