PostGIS Special Functions Index PostGIS Aggregate Functions The functions given below are spatial aggregate functions provided with PostGIS that can be used just like any other sql aggregate function such as sum, average. - PostGIS SQL-MM Compliant Functions The functions given below are PostGIS functions that conform to the SQL/MM 3 standard SQL-MM defines the default SRID of all geometry constructors as 0. PostGIS uses a default SRID of -1. - PostGIS Geography Support Functions The functions and operators given below are PostGIS functions/operators that take as input or return as output a geography data type object. Functions with a (T) are not native geodetic functions, and use a ST_Transform call to and from geometry to do the operation. As a result, they may not behave as expected when going over dateline, poles, and for large geometries or geometry pairs that cover more than one UTM zone. Basic tranform - (favoring UTM, Lambert Azimuthal (North/South), and falling back on mercator in worst case scenario) - PostGIS Raster Support Functions The functions and operators given below are PostGIS functions/operators that take as input or return as output a data type object. Listed in alphabetical order. - PostGIS Geometry / Geography / Raster Dump Functions The functions given below are PostGIS functions that take as input or return as output a set of or single geometry_dump or geomval data type object. - PostGIS Box Functions The functions given below are PostGIS functions that take as input or return as output the box* family of PostGIS spatial types. The box family of types consists of box2d, box3d, box3d_extent - PostGIS Functions that support 3D The functions given below are PostGIS functions that do not throw away the Z-Index. - PostGIS Curved Geometry Support Functions The functions given below are PostGIS functions that can use CIRCULARSTRING, CURVEDPOLYGON, and other curved geometry types - PostGIS Polyhedral Surface Support Functions The functions given below are PostGIS functions that can use POLYHEDRALSURFACE, POLYHEDRALSURFACEM geometries - ]]> ]]> ]]> PostGIS Function Support Matrix Below is an alphabetical listing of spatial specific functions in PostGIS and the kinds of spatial types they work with or OGC/SQL compliance they try to conform to. A means the function works with the type or subtype natively. A means it works but with a transform cast built-in using cast to geometry, transform to a "best srid" spatial ref and then cast back. Results may not be as expected for large areas or areas at poles and may accumulate floating point junk. A means the function works with the type because of a auto-cast to another such as to box3d rather than direct type support. geom - Basic 2D geometry support (x,y). geog - Basic 2D geography support (x,y). 2.5D - basic 2D geometries in 3 D/4D space (has Z or M coord). PS - Polyhedral surfaces T - Triangles and Triangulated Irregular Network surfaces (TIN) Function geom geog 2.5D Curves SQL MM PS T New, Enhanced or changed PostGIS Functions PostGIS Functions new, behavior changed, or enhanced in 2.0 The functions given below are PostGIS functions that were added, enhanced, or have breaking changes in 2.0 releases. New geometry types: TIN and Polyhedral surfaces was introduced in 2.0 Greatly improved support for Topology. Please refer to for more details. In PostGIS 2.0, raster type and raster functionality has been integrated. There are way too many new raster functions to list here and all are new so please refer to for more details of the raster functions available. - The functions given below are PostGIS functions that are enhanced in PostGIS 2.0. - The functions given below are PostGIS functions that have changed behavior in PostGIS 2.0. Most deprecated functions have been removed. These are functions that haven't been documented since 1.2 or some internal functions that were never documented. If you are using a function that you don't see documented, it's probably deprecated, about to be deprecated, or internal and should be avoided. - PostGIS Functions new, behavior changed, or enhanced in 1.5 The functions given below are PostGIS functions that were introduced or enhanced in this minor release. - PostGIS Functions new, behavior changed, or enhanced in 1.4 The functions given below are PostGIS functions that were introduced or enhanced in the 1.4 release. - PostGIS Functions new in 1.3 The functions given below are PostGIS functions that were introduced in the 1.3 release. - args: , -