Series of simple example PostgreSQL/PostGIS scripts that geographers (or anyone) might find useful
PLSQL
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Images
CalculateAreaPostGIS.sql
CalculateBufferPostGIS.sql
CalculateCentroidPostGIS.sql
CalculateExtentPostGIS.sql
CalculateLengthPostGIS.sql
CheckInvalidGeomPostGIS.sql
CreatePostGISDB.sql
FixInvalidPostGIS.sql
GeomContainsPostGIS.sql
GeomDifferencePostGIS.sql
GeomIntersectPostGIS.sql
GeomUnionPostGIS.sql
LoadShapefilePostGIS.md
MultiPointtoLine_PostGIS.sql
README.md

README.md

PostGIS for the Geographer

Series of simple example PostgreSQL/PostGIS scripts that geographers (or anyone) might find useful.

New scripts will be added over the next couple weeks, that use sample data that is available below.

All scripts and tables used here are based on the GEOMETRY data type

Data used in scripts and tutorials can be downloaded here (it's a 28mb zip). All data originally downloaded from Natural Earth's awesome website

If there are any specific PostgreSQL/PostGIS scripts you would like to see, shoot me a message @theBenSpaulding.

Boundless also has a really good intro to PostGIS workshop - check it out here.