PostGIS 2.4.0 release, PG spatial data storage extension
PostGIS 2.4.0 has been released, PostGIS in the object-relational database PostgreSQL added storage management space data capacity, equivalent to Oracle’s spatial part. The biggest feature of PostGIS is that it conforms to and implements some of OpenGIS’s specifications and is the most famous open source GIS database.
New features
- 3822, Have postgisfullversion() also show and check version of PostgreSQL the scripts were built against (Sandro Santilli)
- 2411, curves support in ST_Reverse (Sandro Santilli)
- 2951, ST_Centroid for geography (Danny Götte)
- 3788, Allow postgis_restore.pl to work on directory-style (-Fd) dumps (Roger Crew)
- 3772, Direction agnostic ST_CurveToLine output (Sandro Santilli / KKGeo)
- 2464, ST_CurveToLine with MaxError tolerance (Sandro Santilli / KKGeo)
- 3599, Geobuf output support via ST_AsGeobuf (Björn Harrtell)
- 3661, Mapbox vector tile output support via ST_AsMVT (Björn Harrtell / Carto)
- 3689, Add orientation checking and forcing functions (Dan Baston)
- 3753, Gist penalty speed improvements for 2d and nd points (Darafei Praliaskouski)
- 3677, ST_FrechetDistance (Shinichi Sugiyama)
- Most aggregates (raster and geometry), and all stable / immutable (raster and geometry) marked as parallel safe
- 2249, ST_MakeEmptyCoverage for raster (David Zwarg, ainomieli)
- 3709, Allow signed distance for ST_Project (Darafei Praliaskouski)
- 524, Covers support for Polygon-on-polygon, line on line, point on line for geography (Danny Götte)
Improve
- Support for PostgreSQL 10
- 3645, Avoid loading logically deleted records from shapefiles
- 3747, Add zip4 and addressalphanumeric as attributes to normaddy tiger_geocoder type.
- 3748, addressstandardizer lookup tables update so pagcnormalize_address better standardizes abbreviations
- 3647, better handling of noding in ST_Node using GEOSNode (Wouter Geraedts)
- 3684, Update to EPSG register v9 (Even Rouault)
- 3830, Fix initialization of incompatible type (>=9.6) address_standardizer
- 3662, Make shp2pgsql work in debug mode by sending debug to stderr
- 3405, Fixed memory leak in lwgeomtopoints
- 3832, Support wide integer fields as int8 in shp2pgsql
- 3841, Deterministic sorting support for empty geometries in btree geography
- 3844, Make = operator a strict equality test, and < > to rough “spatial sorting”
- 3855, ST_AsTWKB memory and speed improvements
Important change
- Dropped support for PostgreSQL 9.2.
- 3810, GEOS 3.4.0 or above minimum required to compile
- Most aggregates now marked as parallel safe, which means most aggs have to be dropped / recreated. If you have views that utilize PostGIS aggs, you’ll need to drop before upgrade and recreate after upgrade
- B-Tree index operators < = > changed to provide better spatial locality on sorting and have expected behavior on GROUP BY. It now works on exact geometry instead of bounding box. If you have btree index for geometry or geography, you need to REINDEX it, or review if it was created by accident and needs to be replaced with GiST index. If your code relies on old left-to-right box compare ordering, update it to use << >> operators.
_ST_DumpPoints
removed, was no longer needed after PostGIS 2.1.0 when ST_DumpPoints got reimplemented in C