Skip to main content
100%

Postgres/PostGIS query for buffer and spatial 'shifted' point

✓ Published0🌍 Public
Aantichaos
Last edited Dec 29, 2020
Created on Dec 28, 2020

This example shows how PostGIS builds a composite set of geographic buffers and a projected point for use in a Tableau dashboard. It first creates a donut-shaped buffer by taking the difference between two concentric buffer polygons around a point defined by longitude and latitude. It then projects a new point three times the buffer distance away, rotates it 90 degrees, and buffers it into a small circle. The code uses `ST_MakePoint`, `ST_Buffer`, `ST_Difference`, `ST_Project`, and `st_collect` to assemble the result as a geography MultiPolygon.

AI-generated description

Similar vizzes