OHDSI GIS
WGgaiaDb is the core data repository for the Gaia toolchain, implemented as a PostgreSQL/PostGIS database. It contains all geospatial data processing logic, SQL routines, and OMOP CDM integration functionality.
gaiaDb uses a dual-schema approach: - backbone schema: Core LinkML-based metadata and data catalog - working schema: OMOP integration tables (external_exposure, location_history, location)
All data transformation, spatial operations, and exposure calculations are performed within the database using SQL and PostGIS functions.
gaiaDb is accessed through: - gaiaCore: R package that connects directly and calls the database’s functions - Direct database connections: Standard PostgreSQL client connections - PostgREST API (optional): RESTful interface to database functions and tables, deployed by gaiaDocker