If you need help using these packages (the installers and buildbot binaries), please ask on our users mailing list.
If you find a bug with the installers or the buildbot packages, please report these on our Ticket Tracker under component: build/upgrade/install with keyword: windows.
The installers are designed to work with EnterpriseDb PostgreSQL distributions.
PostGIS 3.0.0 came out October 20th, 2019. Binaries for versions of PostgreSQL 10-12 (64-bit) available in Unreleased PostGIS Versions
and OSGeo downloads),
installers for 10-12 (64-bit) are available on stackbuilder and OSGeo downloads.
PostGIS 3.0.0 bundle includes: (republished Nov 10th 2019, to include raster2pgsql which was missing in original release and upgrade GDAL)
The simplest way to get PostGIS on Windows for the EnterpriseDb Windows PostgreSQL distribution is using the StackBuilder. Refer to An Almost Idiot’s Guide Installing PostGIS on Windows 1. Download and install PostgreSQL from EnterpriseDB. 2. Run the “StackBuilder” utility and install the PostGIS add-on.
If you want to use the zip, setup, and setup source files directly they are available:
Zip and Installer files The .zip files are just the binaries you can copy into your PostgreSQL installation and then enable in each database as usual. The exe are standard windows setup for both 32-bit and 64-bit PostgreSQL.
Source Setup files The source setup files are useful if you want to build your own NSIS installer or create a single setup for your own project that also installs PostGIS. The Binary zip files should contain all the binary files you need to customize your own setup minus the documentation. You can also just extract the .exe setup file to get the binaries, but the extract sometimes gets mangled leaving out some of the postgis-gui subfolders.
If you are using BigSQL distribution use the PostGIS available via the BigSQL distribution. If you are on BigSQL (PostgreSQL 9.5+) and need items not available in BigSQL distribution (e.g. SFCGAL, pgRouting, or development versions of PostGIS), you can use the binaries in the experimental section. Note the path you copy to in BigSQL is a little different (e.g. postgresql/lib instead of lib).
If you need SFCGAL support, you need to use the PostGIS packaged in the zips in the experimental section instead of the BigSQL PostGIS. Also make sure not to overwrite any files that come with BigSQL distribution.
If you are more adventurous, and risk-seeking you can partake in our experimental windows binaries of PostGIS built automatically by Winnie whenever there is a change in any of the PostGIS Stable or development branches. These are especially useful for testing out new features or if you are badly in need of a bug fix that has not been released yet.
Binaries from PostgreSQL 9.5 and up will work on both PostgreSQL EDB windows distribution as well as the BigSQL distributions.
If you don’t want to risk messing up an existing windows install or aren’t allowed to write to the registry , we’d suggest using the companion PostgreSQL EDB binaries-only binaries which don’t require installation. Setup is detailed in Starting PostgreSQL in windows without install.
Or Alternatively if you have windows 64-bit, you also have the option of BigSQL development installs - Installing BigSQL PostgresQL version with PGC
PostGIS is an optional extension that must be enabled in EVERY database you want to use it in.
CREATE EXTENSION postgis; -- in PostGIS 3, postgis_raster is a separate extension from postgis -- so do this in addition if you are experimenting PostGIS 3+ CREATE EXTENSION postgis_raster; CREATE EXTENSION postgis_sfcgal; CREATE EXTENSION address_standardizer; CREATE EXTENSION fuzzystrmatch; CREATE EXTENSION postgis_topology; CREATE EXTENSION postgis_tiger_geocoder;
If you want to use pgrouting, download the respective one for your PostgreSQL/
CREATE EXTENSION pgrouting;
For loading OpenStreetMap data (OSM) into pgrouting format, you can use osm2po or osm2pgrouting.
Windows binaries for osm2pgrouting can be found in the extras
folder of each version. Refer to instructions in the zip.
Make sure to use the 32-bit with 32-bit PostgreSQL install and 64-bit for PostgreSQL 64-bit install (copying the .dlls into your respective PostgreSQL/bin folder).
See the install section for more guidance.
PostGIS 3.0.1dev
pgRouting Package 2.6.2
For 9.5-10 (32-bit / 64-bit), 9.6 (32-bit / 64-bit), 11 (64-bit) refer to getting started guide for more details.
Also find in same folder companion osm2pgrouting-2.2.0 package for loading osm data.
Will work with PostGIS 2.1-3.0 (not tested on PostGIS 2.0, but should work)
pgRouting Package 2.5.2
For 10 (32-bit / 64-bit), 9.6 (32-bit / 64-bit), 9.5(32-bit / 64-bit), 9.4 (32-bit / 64-bit), 9.3 (32-bit /64-bit) refer to getting started guide for more details.
Also find in same folder companion osm2pgrouting-2.2.0 package for loading osm data.
Will work with PostGIS 2.1-2.5 (not tested on PostGIS 2.0, but should work)
pgRouting Package 2.4.3dev
For 10 (32-bit / 64-bit), 9.6 (32-bit / 64-bit), 9.5(32-bit / 64-bit), 9.4 (32-bit / 64-bit), 9.3 (32-bit /64-bit), 9.2 (32-bit / 64-bit) refer to getting started guide for more details.
Also find in same folder companion osm2pgrouting-2.2.0 package for loading osm data.
Will work with PostGIS 2.1-2.4 (not tested on PostGIS 2.0, but should work)
PostgreSQL Extension files included
New Features since 2.3 release New Signatures
New Proposed Signatures
Deprecated Signatures
* pgr_bddijkstra - use pgr_bdDijkstra instead
Deprecated Functions
* pgr_pointsToVids
Bug fix
* Bug fixes on proposed functions
pgr_withPointsKSP: fixed ordering
* TRSP original code is used with no changes on the compilation warnings
Improvements and consolidation of existing algorithms