Data Engineering Podcast

Scale Your Spatial Analysis By Building It In SQL With Syntax Extensions

Feb 7, 2022
Ask episode
AI Snips
Chapters
Transcript
Episode notes
ADVICE

Normalize Formats With GDAL

  • Use GDAL/OGR (the GDAL library) to normalize and transform incoming spatial file formats and projections.
  • Automate reprojection and vector/raster conversions before ingesting into the database.
ADVICE

Separate Geometry From Attributes

  • Store geometries separately from tabular attributes and join by a stable geo ID to reduce storage and simplify updates.
  • Keep one geometry record and join it to changing attribute tables to avoid duplicating large geometries.
INSIGHT

Projection Choice Changes Measurements

  • Projection and spatial type (geometry vs geography) determine whether you measure on a flat plane or the Earth's curve.
  • Choose the spatial type consciously because distance and analysis accuracy change with scale.
Get the Snipd Podcast app to discover more snips from this episode
Get the app