PostGIS — Spatial and Geographic Objects for PostgreSQL

Spatial and Geographic objects for PostgreSQL
PostGIS is a spatial database extender for PostgreSQL object-relational database. It adds support for geographic objects allowing location queries to be run in SQL.
SELECT superhero.name FROM city, superhero WHERE ST_Contains(city.geom, superhero.geom) AND city.name = 'Gotham';
Docs for latest stable release
In addition to basic location awareness, PostGIS offers many features rarely found in other competing spatial databases
such as Oracle Locator/Spatial and SQL Server. Refer to PostGIS Feature List for more details.
Not sure if you are running the best possible PostGIS for your PostgreSQL?
Refer to our Version compatibility and EOL Policy.
PostGIS is released under the GNU General Public License (GPLv2 or later).
Refer to License FAQ for more information.
PostGIS is developed by a group of contributors led by a Project Steering Committee.
What’s happening right now
Blogs, Tweets and more…
PostGIS 3.1.1
The PostGIS Team is pleased to release the release of PostGIS 3.1.1!
This release is a bug fix release, addressing issues found in the previous 3.1 release.
- #4814, Crash passing collection with only empty components to ST_MakeValid
- #4818, Make the VSICURL synthetic driver work as documented
- #4825, Unstable results from ST_MakeValid
- #4823, Avoid listing the same geometry in different collections
Read More…
PostGIS 3.1.0
The PostGIS Team is pleased to release the release of PostGIS 3.1.0!
This version exposes the new features of GEOS 3.9 as well as numerous core performance enhancements for spatial joins, large object access, text format output and more.
Performance is a key feature of this release, with improvements to spatial joins, text outputs, large object reads, vector tile output, and a host of smaller tweaks.
The k-means clustering code has been enhanced to support weighting and higher dimensional clusters.
Geometry generators to create hexagonal and square tilings have been added, for simpler in-the-database summarization queries.
Finally, PostGIS exposes the latest enhancements in the GEOS geometry library 3.9 version. The new overlay engine (aka “OverlayNG”) provides more robust handling of difficult input geometries, using a set of new noding strategies to process geometry. For the end user, this should mean no more “topology exceptions” when using the union, difference, intersection or symmetric difference functions. PostGIS also exposes the new fixed precision overlay capability via an additional grid-size parameter on ST_Intersection and the other overlay functions.
Read More…
PostGIS 3.1.0rc1
The PostGIS Team is pleased to release the release candidate of the upcoming PostGIS 3.1.0 release. This version is exposes some of the new performance and feature enhancements in GEOS 3.9 as well as numerous speed enhancements not requiring newer GEOS.
Best served with:
Read More…
PostGIS 3.1.0beta1
The PostGIS Team is pleased to release the first beta of the upcoming PostGIS
3.1.0 release. This version is exposes some of
the new performance and feature enhancements in not yet relesed GEOS 3.9 as well as numerous speed enhancements not requiring newer GEOS.
Requires GEOS 3.6+ and PostgreSQL 9.6+. To use MVT you will need protobuf-c 1.1. or higher.
Best served with:
Read More…
More News…
PGCon 2020
May 26-29 2020, Ottawa, ON, Canada CHANGED TO
ONLINE
Move PostGIS extension to a different schema
As of PostGIS 2.3, the postgis extension was changed to no longer allow relocation.
All function calls within the extension are now schema qualified.
While this change fixed some issues with database restore, it created the issue of
if you installed PostGIS in a schema other than the one you wanted to
it is not intuitive how to move it to a different schema. Luckily there is a way to do this.
For this exercise, I will install PostGIS in the default schema and then demonstrate how to move
it into another schema location.
You can run these steps using psql or pgAdmin or any other PostgreSQL tool you want.
Read More…
More Tips…
Howard Hughes Medical Institute
As a software engineer at the Howard Hughes Medical Institute, I work on a collaborative neuron reconstruction and analysis software called CATMAID 1 (screenshot: 3), which is used for neuroscience research. We use PostGIS to represent neurons in a 3D space.
Read More…
Vanguard Appraisals
Vanguard Appraisals is new to the GIS world. In fact, we aren’t really in the GIS world; we just kind of brush up against it. We do mass property appraisal for entire county and city jurisdictions, and we develop software to collect, price and maintain values. We also host assessment data online so that homeowners can search and find property information much simpler from the comfort of their own home. Our software and websites are used in 7 states (IA, IL, MN, MO, NE, ND, SD).
Read More…
More Case Studies…