Skip to main content
100%

Fustion Tables CSV => Postgresql => Geom fix

✓ Published0🌍 Public
Aandrewxhill
Last edited May 1, 2013
Created on May 1, 2013

This example shows a workflow for repairing invalid geometry in a FEMA damage assessment dataset stored in PostgreSQL with PostGIS. It converts KML-style polygon coordinates from a Fusion Tables CSV export into valid PostGIS geometries, then updates the spatial column. The process uses SQL string functions like `replace()` to transform coordinate formatting, `ST_GeomFromText` to parse the text into geometry, and `ST_MakePolygon` with `ST_AddPoint` to close and correct the polygons. The result prepares the data for subsequent mapping or analysis in a GIS environment.

AI-generated description

Similar vizzes