~/talk

Geospatial Validations Using FastAPI and PostGIS

Talkat PyCon US 2024 · 2024-05-15..05-23· [python, databases]
slides:none on file

Concrete patterns for validating geodata on the backend using FastAPI + PostGIS and existing Python ORMs: load shapefiles with shape2pgsql, store geometries in PostGIS, run ST_Intersects/ST_Distance and SRID checks via SQLAlchemy + GeoAlchemy2, and enforce checks either as Pydantic validators or endpoint dependencies. The demo app returns 422 for bad points and correct neighborhoods for good ones, with code and slides linked in the repo.

AI-written summary · about

  1. 0:00Introduction to geospatial data
  2. 1:07Understanding spatial concepts
  3. 5:01Getting started with PostGIS
  4. 7:10Core PostGIS functions
  5. 12:11Validating geospatial data
  6. 14:07Implementing geospatial queries
  7. 17:02FastAPI integration
  8. 20:17Live demo and validation
  9. 22:52Questions and answers
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.