12.12. New, Enhanced or changed PostGIS Functions
12.12.1. PostGIS Functions new or enhanced in 3.4
The functions given below are PostGIS functions that were added or enhanced.
Functions new in PostGIS 3.4
- PostGIS_GEOS_Compiled_Version - Availability: 3.4.0 Returns the version number of the GEOS library against which PostGIS was built.
- ST_ClusterIntersectingWin - Availability: 3.4.0 Window function that returns a cluster id for each input geometry, clustering input geometries into connected sets.
- ST_ClusterWithinWin - Availability: 3.4.0 Window function that returns a cluster id for each input geometry, clustering using separation distance.
- ST_CoverageInvalidEdges - Availability: 3.4.0 Window function that finds locations where polygons fail to form a valid coverage.
- ST_CoverageSimplify - Availability: 3.4.0 Window function that simplifies the edges of a polygonal coverage.
- ST_CoverageUnion - Availability: 3.4.0 - requires GEOS >= 3.8.0 Computes the union of a set of polygons forming a coverage by removing shared edges.
- ST_InverseTransformPipeline - Availability: 3.4.0 Return a new geometry with coordinates transformed to a different spatial reference system using the inverse of a defined coordinate transformation pipeline.
- ST_LargestEmptyCircle - Availability: 3.4.0. Computes the largest circle not overlapping a geometry.
- ST_LineExtend - Availability: 3.4.0 Returns a line with the last and first segments extended the specified distance(s).
- ST_TransformPipeline - Availability: 3.4.0 Return a new geometry with coordinates transformed to a different spatial reference system using a defined coordinate transformation pipeline.
- postgis_srs - Availability: 3.4.0 Return a metadata record for the requested authority and srid.
- postgis_srs_all - Availability: 3.4.0 Return metadata records for every spatial reference system in the underlying Proj database.
- postgis_srs_codes - Availability: 3.4.0 Return the list of SRS codes associated with the given authority.
- postgis_srs_search - Availability: 3.4.0 Return metadata records for projected coordinate systems that have areas of useage that fully contain the bounds parameter.
Functions enhanced in PostGIS 3.4
- PostGIS_Full_Version - Enhanced: 3.4.0 now includes extra PROJ configurations NETWORK_ENABLED, URL_ENDPOINT and DATABASE_PATH of proj.db location Reports full PostGIS version and build configuration infos.
- PostGIS_PROJ_Version - Enhanced: 3.4.0 now includes NETWORK_ENABLED, URL_ENDPOINT and DATABASE_PATH of proj.db location Returns the version number of the PROJ4 library.
- ST_AsSVG - Enhanced: 3.4.0 to support all curve types Returns SVG path data for a geometry.
- ST_ClosestPoint - Enhanced: 3.4.0 - Support for geography. Returns the 2D point on g1 that is closest to g2. This is the first point of the shortest line from one geometry to the other.
- ST_LineSubstring - Enhanced: 3.4.0 - Support for geography was introduced. Returns the part of a line between two fractional locations.
- ST_Project - Enhanced: 3.4.0 Allow geometry arguments and two-point form omitting azimuth. Returns a point projected from a start point by a distance and bearing (azimuth).
- ST_ShortestLine - Enhanced: 3.4.0 - support for geography. Retorna a menor linha 2-dimensional entre duas geometrias
Functions changed in PostGIS 3.4
- PostGIS_Extensions_Upgrade - Changed: 3.4.0 to add target_version argument. Packages and upgrades PostGIS extensions (e.g. postgis_raster, postgis_topology, postgis_sfcgal) to given or latest version.
12.12.2. PostGIS Functions new or enhanced in 3.3
The functions given below are PostGIS functions that were added or enhanced.
Functions new in PostGIS 3.3
- ST_3DConvexHull - Disponibilidade: 2.1.0 Computa o eixo mediano aproximado de uma geometria territorial.
- ST_3DUnion - Availability: 3.3.0 aggregate variant was added Perform 3D union.
- ST_AlphaShape - Availability: 3.3.0 - requires SFCGAL >= 1.4.1. Computes an Alpha-shape enclosing a geometry
- ST_AsMARC21 - Availability: 3.3.0 Returns geometry as a MARC21/XML record with a geographic datafield (034).
- ST_GeomFromMARC21 - Availability: 3.3.0, requires libxml2 2.6+ Takes MARC21/XML geographic data as input and returns a PostGIS geometry object.
- ST_Letters - Disponibilidade: 2.1.0 Returns the input letters rendered as geometry with a default start position at the origin and default text height of 100.
- ST_OptimalAlphaShape - Availability: 3.3.0 - requires SFCGAL >= 1.4.1. Computes an Alpha-shape enclosing a geometry using an "optimal" alpha value.
- ST_SimplifyPolygonHull - Availability: 3.3.0. Computes a simplifed topology-preserving outer or inner hull of a polygonal geometry.
- ST_TriangulatePolygon - Availability: 3.3.0. Computes the constrained Delaunay triangulation of polygons
- postgis_sfcgal_full_version - Disponibilidade: 2.1.0 Returns the full version of SFCGAL in use including CGAL and Boost versions
Functions enhanced in PostGIS 3.3
- ST_ConcaveHull - Enhanced: 3.3.0, GEOS native implementation enabled for GEOS 3.11+ Computes a possibly concave geometry that contains all input geometry vertices
- ST_LineMerge - Enhanced: 3.3.0 accept a directed parameter. Return the lines formed by sewing together a MultiLineString.
Functions changed in PostGIS 3.3
- PostGIS_Extensions_Upgrade - Changed: 3.3.0 support for upgrades from any PostGIS version. Does not work on all systems. Packages and upgrades PostGIS extensions (e.g. postgis_raster, postgis_topology, postgis_sfcgal) to given or latest version.
12.12.3. PostGIS Functions new or enhanced in 3.2
The functions given below are PostGIS functions that were added or enhanced.
Functions new in PostGIS 3.2
- ST_AsFlatGeobuf - Availability: 3.2.0 Return a FlatGeobuf representation of a set of rows.
- ST_DumpSegments - Disponibilidade: 2.2.0 Retorna um texto resumo dos conteúdos da geometria.
- ST_FromFlatGeobuf - Availability: 3.2.0 Reads FlatGeobuf data.
- ST_FromFlatGeobufToTable - Availability: 3.2.0 Creates a table based on the structure of FlatGeobuf data.
- ST_Scroll - Availability: 3.2.0 Change start point of a closed LineString.
- postgis.gdal_vsi_options - Disponibilidade: 2.2.0 Uma opção de configuração booleana para ativar o acesso ao out-db raster bands.
Functions enhanced in PostGIS 3.2
- ST_ClusterKMeans - Enhanced: 3.2.0 Support for max_radius Window function that returns a cluster id for each input geometry using the K-means algorithm.
- ST_MakeValid - Enhanced: 3.2.0, added algorithm options, 'linework' and 'structure' which requires GEOS >= 3.10.0. Attempts to make an invalid geometry valid without losing vertices.
- ST_Point - Enhanced: 3.2.0 srid as an extra optional argument was added. Older installs require combining with ST_SetSRID to mark the srid on the geometry. Creates a Point with X, Y and SRID values.
- ST_PointM - Enhanced: 3.2.0 srid as an extra optional argument was added. Older installs require combining with ST_SetSRID to mark the srid on the geometry. Creates a Point with X, Y, M and SRID values.
- ST_PointZ - Enhanced: 3.2.0 srid as an extra optional argument was added. Older installs require combining with ST_SetSRID to mark the srid on the geometry. Creates a Point with X, Y, Z and SRID values.
- ST_PointZM - Enhanced: 3.2.0 srid as an extra optional argument was added. Older installs require combining with ST_SetSRID to mark the srid on the geometry. Creates a Point with X, Y, Z, M and SRID values.
- ST_RemovePoint - Enhanced: 3.2.0 Remove a point from a linestring.
- ST_RemoveRepeatedPoints - Enhanced: 3.2.0 Returns a version of a geometry with duplicate points removed.
- ST_StartPoint - Enhanced: 3.2.0 returns a point for all geometries. Prior behavior returns NULLs if input was not a LineString. Returns the first point of a LineString.
Functions changed in PostGIS 3.2
- ST_Boundary - Changed: 3.2.0 support for TIN, does not use geos, does not linearize curves Retorna o encerramento da borda combinatória dessa geometria.
12.12.4. PostGIS Functions new or enhanced in 3.1
The functions given below are PostGIS functions that were added or enhanced.
Functions new in PostGIS 3.1
- ST_Hexagon - Disponibilidade: 2.1.0 Returns a single hexagon, using the provided edge size and cell coordinate within the hexagon grid space.
- ST_HexagonGrid - Disponibilidade: 2.1.0 Returns a set of hexagons and cell indices that completely cover the bounds of the geometry argument.
- ST_MaximumInscribedCircle - Availability: 3.1.0. Retorna o centro geométrico de uma geometria.
- ST_ReducePrecision - Availability: 3.1.0. Returns a valid geometry with points rounded to a grid tolerance.
- ST_Square - Disponibilidade: 2.1.0 Returns a single square, using the provided edge size and cell coordinate within the square grid space.
- ST_SquareGrid - Disponibilidade: 2.1.0 Returns a set of grid squares and cell indices that completely cover the bounds of the geometry argument.
Functions enhanced in PostGIS 3.1
- ST_AsEWKT - Enhanced: 3.1.0 support for optional precision parameter. Retorna a representação de texto bem conhecida (WKT) da geometria com os meta dados SRID.
- ST_ClusterKMeans - Enhanced: 3.1.0 Support for 3D geometries and weights Window function that returns a cluster id for each input geometry using the K-means algorithm.
- ST_Difference - Enhanced: 3.1.0 accept a gridSize parameter. Computes a geometry representing the part of geometry A that does not intersect geometry B.
- ST_Intersection - Enhanced: 3.1.0 accept a gridSize parameter Computes a geometry representing the shared portion of geometries A and B.
- ST_MakeValid - Enhanced: 3.1.0, added removal of Coordinates with NaN values. Attempts to make an invalid geometry valid without losing vertices.
- ST_Subdivide - Enhanced: 3.1.0 accept a gridSize parameter. Computes a rectilinear subdivision of a geometry.
- ST_SymDifference - Enhanced: 3.1.0 accept a gridSize parameter. Computes a geometry representing the portions of geometries A and B that do not intersect.
- ST_TileEnvelope - Melhorias: 2.0.0 parâmetro opcional padrão srid adicionado. Creates a rectangular Polygon in Web Mercator (SRID:3857) using the XYZ tile system.
- ST_UnaryUnion - Enhanced: 3.1.0 accept a gridSize parameter. Computes the union of the components of a single geometry.
- ST_Union - Enhanced: 3.1.0 accept a gridSize parameter. Computes a geometry representing the point-set union of the input geometries.
Functions changed in PostGIS 3.1
- ST_Force3D - Changed: 3.1.0. Added support for supplying a non-zero Z value. Força a geometria para um modo XYZ. Este é um apelido para a função ST_Force_3DZ.
- ST_Force3DM - Changed: 3.1.0. Added support for supplying a non-zero M value. Força as geometrias para o modo XYM.
- ST_Force3DZ - Changed: 3.1.0. Added support for supplying a non-zero Z value. Força as geometrias para o modo XYZ.
- ST_Force4D - Changed: 3.1.0. Added support for supplying non-zero Z and M values. Força as geometrias para o modo XYZM.
12.12.5. PostGIS Functions new or enhanced in 3.0
The functions given below are PostGIS functions that were added or enhanced.
Functions new in PostGIS 3.0
- ST_3DLineInterpolatePoint - Disponibilidade: 2.0.0 Returns a point interpolated along a 3D line at a fractional location.
- ST_ConstrainedDelaunayTriangles - Disponibilidade: 2.1.0 Return a constrained Delaunay triangulation around the given input geometry.
- ST_TileEnvelope - Disponibilidade: 2.1.0 Creates a rectangular Polygon in Web Mercator (SRID:3857) using the XYZ tile system.
Functions enhanced in PostGIS 3.0
- ST_AsMVT - Enhanced: 3.0 - added support for Feature ID. Aggregate function returning a MVT representation of a set of rows.
- ST_Contains - Enhanced: 3.0.0 enabled support for GEOMETRYCOLLECTION Tests if every point of B lies in A, and their interiors have a point in common
- ST_ContainsProperly - Enhanced: 3.0.0 enabled support for GEOMETRYCOLLECTION Tests if every point of B lies in the interior of A
- ST_CoveredBy - Enhanced: 3.0.0 enabled support for GEOMETRYCOLLECTION Tests if every point of A lies in B
- ST_Covers - Enhanced: 3.0.0 enabled support for GEOMETRYCOLLECTION Tests if every point of B lies in A
- ST_Crosses - Enhanced: 3.0.0 enabled support for GEOMETRYCOLLECTION Tests if two geometries have some, but not all, interior points in common
- ST_CurveToLine - Enhanced: 3.0.0 implemented a minimum number of segments per linearized arc to prevent topological collapse. Converts a geometry containing curves to a linear geometry.
- ST_Disjoint - Enhanced: 3.0.0 enabled support for GEOMETRYCOLLECTION Tests if two geometries have no points in common
- ST_Equals - Enhanced: 3.0.0 enabled support for GEOMETRYCOLLECTION Tests if two geometries include the same set of points
- ST_GeneratePoints - Enhanced: 3.0.0, added seed parameter Generates random points contained in a Polygon or MultiPolygon.
- ST_GeomFromGeoJSON - Enhanced: 3.0.0 parsed geometry defaults to SRID=4326 if not specified otherwise. Utiliza como entrada uma representação geojson de uma geometria e como saída um objeto de geometria PostGIS
- ST_LocateBetween - Enhanced: 3.0.0 - added support for POLYGON, TIN, TRIANGLE. Returns the portions of a geometry that match a measure range.
- ST_LocateBetweenElevations - Enhanced: 3.0.0 - added support for POLYGON, TIN, TRIANGLE. Returns the portions of a geometry that lie in an elevation (Z) range.
- ST_Overlaps - Enhanced: 3.0.0 enabled support for GEOMETRYCOLLECTION Tests if two geometries have the same dimension and intersect, but each has at least one point not in the other
- ST_Relate - Enhanced: 3.0.0 enabled support for GEOMETRYCOLLECTION Tests if two geometries have a topological relationship matching an Intersection Matrix pattern, or computes their Intersection Matrix
- ST_Segmentize - Enhanced: 3.0.0 Segmentize geometry now produces equal-length subsegments Returns a modified geometry/geography having no segment longer than a given distance.
- ST_Touches - Enhanced: 3.0.0 enabled support for GEOMETRYCOLLECTION Tests if two geometries have at least one point in common, but their interiors do not intersect
- ST_Within - Enhanced: 3.0.0 enabled support for GEOMETRYCOLLECTION Tests if every point of A lies in B, and their interiors have a point in common
Functions changed in PostGIS 3.0
- PostGIS_Extensions_Upgrade - Changed: 3.0.0 to repackage loose extensions and support postgis_raster. Packages and upgrades PostGIS extensions (e.g. postgis_raster, postgis_topology, postgis_sfcgal) to given or latest version.
- ST_3DDistance - Changed: 3.0.0 - SFCGAL version removed Para tipo geometria, retorna a menor distância cartesiana 3-dimensional (baseado no sistema de referência espacial) entre duas geometrias em unidades projetadas.
- ST_3DIntersects - Changed: 3.0.0 SFCGAL backend removed, GEOS backend supports TINs. Tests if two geometries spatially intersect in 3D - only for points, linestrings, polygons, polyhedral surface (area)
- ST_Area - Changed: 3.0.0 - does not depend on SFCGAL anymore. Retorna o centro geométrico de uma geometria.
- ST_AsGeoJSON - Changed: 3.0.0 support records as input Return a geometry as a GeoJSON element.
- ST_AsGeoJSON - Changed: 3.0.0 output SRID if not EPSG:4326. Return a geometry as a GeoJSON element.
- ST_AsKML - Changed: 3.0.0 - Removed the "versioned" variant signature Retorna a geometria como uma versão GML com 2 ou 3 elementos.
- ST_Distance - Changed: 3.0.0 - does not depend on SFCGAL anymore. Retorna a linha 3-dimensional mais longa entre duas geometrias
- ST_Intersection - Changed: 3.0.0 does not depend on SFCGAL. Computes a geometry representing the shared portion of geometries A and B.
- ST_Intersects - Changed: 3.0.0 SFCGAL version removed and native support for 2D TINS added. Tests if two geometries intersect (they have at least one point in common)
- ST_Union - Changed: 3.0.0 does not depend on SFCGAL. Computes a geometry representing the point-set union of the input geometries.
12.12.6. PostGIS Functions new or enhanced in 2.5
The functions given below are PostGIS functions that were added or enhanced.
Functions new in PostGIS 2.5
- PostGIS_Extensions_Upgrade - Availability: 2.5.0 Packages and upgrades PostGIS extensions (e.g. postgis_raster, postgis_topology, postgis_sfcgal) to given or latest version.
- ST_Angle - Availability: 2.5.0 Retorna a linha 3-dimensional mais longa entre duas geometrias
- ST_ChaikinSmoothing - Availability: 2.5.0 Returns a smoothed version of a geometry, using the Chaikin algorithm
- ST_FilterByM - Availability: 2.5.0 Removes vertices based on their M value
- ST_LineInterpolatePoints - Availability: 2.5.0 Returns points interpolated along a line at a fractional interval.
- ST_OrientedEnvelope - Availability: 2.5.0. Returns a minimum-area rectangle containing a geometry.
- ST_QuantizeCoordinates - Availability: 2.5.0 Sets least significant bits of coordinates to zero
Functions enhanced in PostGIS 2.5
- ST_AsMVT - Enhanced: 2.5.0 - added support parallel query. Aggregate function returning a MVT representation of a set of rows.
- ST_AsText - Enhanced: 2.5 - optional parameter precision introduced. Retorna a representação de texto bem conhecida (WKT) da geometria/geografia sem os meta dados do SRID.
- ST_Buffer - Enhanced: 2.5.0 - ST_Buffer geometry support was enhanced to allow for side buffering specification side=both|left|right. Computes a geometry covering all points within a given distance from a geometry.
- ST_GeomFromGeoJSON - Enhanced: 2.5.0 can now accept json and jsonb as inputs. Utiliza como entrada uma representação geojson de uma geometria e como saída um objeto de geometria PostGIS
- ST_GeometricMedian - Enhanced: 2.5.0 Added support for M as weight of points. Retorna a mediana de um MultiPonto.
- ST_Intersects - Enhanced: 2.5.0 Supports GEOMETRYCOLLECTION. Tests if two geometries intersect (they have at least one point in common)
- ST_OffsetCurve - Enhanced: 2.5 - added support for GEOMETRYCOLLECTION and MULTILINESTRING Returns an offset line at a given distance and side from an input line.
- ST_Scale - Enhanced: 2.5.0 support for scaling relative to a local origin (origin parameter) was introduced. Scales a geometry by given factors.
- ST_Split - Enhanced: 2.5.0 support for splitting a polygon by a multiline was introduced. Returns a collection of geometries created by splitting a geometry by another geometry.
- ST_Subdivide - Enhanced: 2.5.0 reuses existing points on polygon split, vertex count is lowered from 8 to 5. Computes a rectilinear subdivision of a geometry.
12.12.7. PostGIS Functions new or enhanced in 2.4
The functions given below are PostGIS functions that were added or enhanced.
Functions new in PostGIS 2.4
- ST_AsGeobuf - Availability: 2.4.0 Return a Geobuf representation of a set of rows.
- ST_AsMVT - Availability: 2.4.0 Aggregate function returning a MVT representation of a set of rows.
- ST_AsMVTGeom - Availability: 2.4.0 Transforms a geometry into the coordinate space of a MVT tile.
- ST_Centroid - Availability: 2.4.0 support for geography was introduced. Retorna o centro geométrico de uma geometria.
- ST_ForcePolygonCCW - Availability: 2.4.0 Orients all exterior rings counter-clockwise and all interior rings clockwise.
- ST_ForcePolygonCW - Availability: 2.4.0 Orients all exterior rings clockwise and all interior rings counter-clockwise.
- ST_FrechetDistance - Availability: 2.4.0 - requires GEOS >= 3.7.0 Retorna a menor linha 3-dimensional entre duas geometrias
- ST_IsPolygonCCW - Disponibilidade: 2.2.0 Tests if Polygons have exterior rings oriented counter-clockwise and interior rings oriented clockwise.
- ST_IsPolygonCW - Disponibilidade: 2.2.0 Tests if Polygons have exterior rings oriented clockwise and interior rings oriented counter-clockwise.
Functions enhanced in PostGIS 2.4
- ST_AsTWKB - Enhanced: 2.4.0 memory and speed improvements. Retorna a geometria como TWKB, também conhecido como "Tiny Well-Known Binary"
- ST_Covers - Enhanced: 2.4.0 Support for polygon in polygon and line in polygon added for geography type Tests if every point of B lies in A
- ST_CurveToLine - Enhanced: 2.4.0 added support for max-deviation and max-angle tolerance, and for symmetric output. Converts a geometry containing curves to a linear geometry.
- ST_Project - Enhanced: 2.4.0 Allow negative distance and non-normalized azimuth. Returns a point projected from a start point by a distance and bearing (azimuth).
- ST_Reverse - Enhanced: 2.4.0 support for curves was introduced. Retorna a geometria com a ordem dos vértices revertida.
Functions changed in PostGIS 2.4
- = - Changed: 2.4.0, in prior versions this was bounding box equality not a geometric equality. If you need bounding box equality, use instead. Returns TRUE if the coordinates and coordinate order geometry/geography A are the same as the coordinates and coordinate order of geometry/geography B.
- ST_Node - Changed: 2.4.0 this function uses GEOSNode internally instead of GEOSUnaryUnion. This may cause the resulting linestrings to have a different order and direction compared to PostGIS < 2.4. Nodes a collection of lines.
12.12.8. PostGIS Functions new or enhanced in 2.3
The functions given below are PostGIS functions that were added or enhanced.
Functions new in PostGIS 2.3
- &&&(geometry,gidx) - Availability: 2.3.0 support for Block Range INdexes (BRIN) was introduced. Requires PostgreSQL 9.5+. Returns TRUE if a geometry's (cached) n-D bounding box intersects a n-D float precision bounding box (GIDX).
- &&&(gidx,geometry) - Availability: 2.3.0 support for Block Range INdexes (BRIN) was introduced. Requires PostgreSQL 9.5+. Returns TRUE if a n-D float precision bounding box (GIDX) intersects a geometry's (cached) n-D bounding box.
- &&&(gidx,gidx) - Availability: 2.3.0 support for Block Range INdexes (BRIN) was introduced. Requires PostgreSQL 9.5+. Returns TRUE if two n-D float precision bounding boxes (GIDX) intersect each other.
- &&(box2df,box2df) - Availability: 2.3.0 support for Block Range INdexes (BRIN) was introduced. Requires PostgreSQL 9.5+. Returns TRUE if two 2D float precision bounding boxes (BOX2DF) intersect each other.
- &&(box2df,geometry) - Availability: 2.3.0 support for Block Range INdexes (BRIN) was introduced. Requires PostgreSQL 9.5+. Returns TRUE if a 2D float precision bounding box (BOX2DF) intersects a geometry's (cached) 2D bounding box.
- &&(geometry,box2df) - Availability: 2.3.0 support for Block Range INdexes (BRIN) was introduced. Requires PostgreSQL 9.5+. Returns TRUE if a geometry's (cached) 2D bounding box intersects a 2D float precision bounding box (BOX2DF).
- @(box2df,box2df) - Availability: 2.3.0 support for Block Range INdexes (BRIN) was introduced. Requires PostgreSQL 9.5+. Returns TRUE if a 2D float precision bounding box (BOX2DF) is contained into another 2D float precision bounding box.
- @(box2df,geometry) - Availability: 2.3.0 support for Block Range INdexes (BRIN) was introduced. Requires PostgreSQL 9.5+. Returns TRUE if a 2D float precision bounding box (BOX2DF) is contained into a geometry's 2D bounding box.
- @(geometry,box2df) - Availability: 2.3.0 support for Block Range INdexes (BRIN) was introduced. Requires PostgreSQL 9.5+. Returns TRUE if a geometry's 2D bounding box is contained into a 2D float precision bounding box (BOX2DF).
- ST_ClusterDBSCAN - Availability: 2.3.0 Window function that returns a cluster id for each input geometry using the DBSCAN algorithm.
- ST_ClusterKMeans - Availability: 2.3.0 Window function that returns a cluster id for each input geometry using the K-means algorithm.
- ST_GeneratePoints - Disponibilidade: 2.3.0 Generates random points contained in a Polygon or MultiPolygon.
- ST_GeometricMedian - Disponibilidade: 2.3.0 Retorna a mediana de um MultiPonto.
- ST_MakeLine - Disponibilidad: 2.0.0 - Suporte para elementos de entrada linestring foi introduzido Cria uma Linestring de ponto, multiponto ou linha das geometrias.
- ST_MinimumBoundingRadius - Disponibilidade - 2.3.0 Returns the center point and radius of the smallest circle that contains a geometry.
- ST_MinimumClearance - Disponibilidade: 2.3.0 Retorna a liquidação mínima de uma geometria, uma medida de uma robustez de uma geometria.
- ST_MinimumClearanceLine - Disponibilidade: 2.3.0 - requer GEOS >= 3.6.0 Retorna a LineString de dois pontos abrangendo a liquidação mínima de uma geometria.
- ST_Normalize - Disponibilidade: 2.3.0 Retorna a geometria na sua forma canônica.
- ST_Points - Disponibilidade: 2.3.0 Retorna uma multilinestring contendo todas as coordenadas de uma geometria.
- ST_VoronoiLines - Disponibilidade: 2.3.0 Returns the boundaries of the Voronoi diagram of the vertices of a geometry.
- ST_VoronoiPolygons - Disponibilidade: 2.3.0 Returns the cells of the Voronoi diagram of the vertices of a geometry.
- ST_WrapX - Availability: 2.3.0 requires GEOS Envolve uma geometria em torno de um valor X.
- ~(box2df,box2df) - Availability: 2.3.0 support for Block Range INdexes (BRIN) was introduced. Requires PostgreSQL 9.5+. Returns TRUE if a 2D float precision bounding box (BOX2DF) contains another 2D float precision bounding box (BOX2DF).
- ~(box2df,geometry) - Availability: 2.3.0 support for Block Range INdexes (BRIN) was introduced. Requires PostgreSQL 9.5+. Returns TRUE if a 2D float precision bounding box (BOX2DF) contains a geometry's 2D bonding box.
- ~(geometry,box2df) - Availability: 2.3.0 support for Block Range INdexes (BRIN) was introduced. Requires PostgreSQL 9.5+. Returns TRUE if a geometry's 2D bonding box contains a 2D float precision bounding box (GIDX).
Functions enhanced in PostGIS 2.3
- ST_Contains - Enhanced: 2.3.0 Enhancement to PIP short-circuit extended to support MultiPoints with few points. Prior versions only supported point in polygon. Tests if every point of B lies in A, and their interiors have a point in common
- ST_Covers - Enhanced: 2.3.0 Enhancement to PIP short-circuit for geometry extended to support MultiPoints with few points. Prior versions only supported point in polygon. Tests if every point of B lies in A
- ST_Expand - Enhanced: 2.3.0 support was added to expand a box by different amounts in different dimensions. Returns a bounding box expanded from another bounding box or a geometry.
- ST_Intersects - Enhanced: 2.3.0 Enhancement to PIP short-circuit extended to support MultiPoints with few points. Prior versions only supported point in polygon. Tests if two geometries intersect (they have at least one point in common)
- ST_Segmentize - Enhanced: 2.3.0 Segmentize geography now produces equal-length subsegments Returns a modified geometry/geography having no segment longer than a given distance.
- ST_Transform - Enhanced: 2.3.0 support for direct PROJ.4 text was introduced. Return a new geometry with coordinates transformed to a different spatial reference system.
- ST_Within - Enhanced: 2.3.0 Enhancement to PIP short-circuit for geometry extended to support MultiPoints with few points. Prior versions only supported point in polygon. Tests if every point of A lies in B, and their interiors have a point in common
Functions changed in PostGIS 2.3
- ST_PointN - Alterações: 2.3.0 : indexing negativo disponível (-1 é o último ponto) Retorna o número de pontos em um valor ST_LineString ou ST_CircularString.
12.12.9. PostGIS Functions new or enhanced in 2.2
The functions given below are PostGIS functions that were added or enhanced.
Functions new in PostGIS 2.2
- <<#>> - Disponibilidade: 2.2.0 -- KNN só está disponível para PostgreSQL 9.1+ Retorna a distância n-D entre as caixas limitadoras de A e B.
- <<->> - Disponibilidade: 2.2.0 -- KNN só está disponível para PostgreSQL 9.1+ Retorna a distância n-D entre as centroides das caixas limitadoras de A e B.
- ST_3DDifference - Disponibilidade: 2.2.0 Representar diferença 3D
- ST_3DUnion - Disponibilidade: 2.2.0 Perform 3D union.
- ST_ApproximateMedialAxis - Disponibilidade: 2.2.0 Computa o eixo mediano aproximado de uma geometria territorial.
- ST_AsEncodedPolyline - Disponibilidade: 2.2.0 Retorna uma Polilinha Encoded de uma geometria LineString.
- ST_AsTWKB - Disponibilidade: 2.2.0 Retorna a geometria como TWKB, também conhecido como "Tiny Well-Known Binary"
- ST_BoundingDiagonal - Disponibilidade: 2.2.0 Retorna a diagonal da geometria fornecida da caixa limitada.
- ST_CPAWithin - Availability: 2.2.0 Tests if the closest point of approach of two trajectories is within the specified distance.
- ST_ClipByBox2D - Availability: 2.2.0 Computes the portion of a geometry falling within a rectangle.
- ST_ClosestPointOfApproach - Availability: 2.2.0 Returns a measure at the closest point of approach of two trajectories.
- ST_ClusterIntersecting - Availability: 2.2.0 Aggregate function that clusters input geometries into connected sets.
- ST_ClusterWithin - Availability: 2.2.0 Aggregate function that clusters geometries by separation distance.
- ST_DistanceCPA - Availability: 2.2.0 Returns the distance between the closest point of approach of two trajectories.
- ST_ForceCurve - Disponibilidade: 2.2.0 Converte para cima uma geometria para seu tipo curvo, se aplicável.
- ST_IsPlanar - Disponibilidade: 2.2.0: Isso foi documentado em 2.1.0, mas foi deixado de fora acidentalmente na 2.1. Verifique se a superfície é ou não planar
- ST_IsSolid - Disponibilidade: 2.2.0 teste se a geometria é um sólido. Nenhuma verificação de validade é representada.
- ST_IsValidTrajectory - Availability: 2.2.0 Tests if the geometry is a valid trajectory.
- ST_LineFromEncodedPolyline - Disponibilidade: 2.2.0 Cria uma LineString de uma Encoded Polyline.
- ST_MakeSolid - Disponibilidade: 2.2.0 Molde a geometria para um sólido. Nenhuma verificação é apresentada. Para obter um sólido válido, a geometria de entrada deve ser uma superfície poliédrica fechada ou um TIN fechado.
- ST_RemoveRepeatedPoints - Disponibilidade: 2.2.0 Returns a version of a geometry with duplicate points removed.
- ST_SetEffectiveArea - Disponibilidade: 2.2.0 Sets the effective area for each vertex, using the Visvalingam-Whyatt algorithm.
- ST_SimplifyVW - Disponibilidade: 2.2.0 Returns a simplified version of a geometry, using the Visvalingam-Whyatt algorithm
- ST_Subdivide - Availability: 2.2.0 Computes a rectilinear subdivision of a geometry.
- ST_SwapOrdinates - Disponibilidade: 2.2.0 Retorna uma versão da geometria dada com os valores ordenados dados trocados.
- ST_Volume - Disponibilidade: 2.2.0 Computa o volume de um sólido 3D. Se aplicado a geometrias com superfícies (mesmo fechadas), irão retornar 0.
- postgis.enable_outdb_rasters - Disponibilidade: 2.2.0 Uma opção de configuração booleana para ativar o acesso ao out-db raster bands.
- postgis.gdal_datapath - Disponibilidade: 2.2.0 Uma opção de configuração para designar o valor da opção GDAL_DATA do GDAL. Se não funcionar, a variável ambiental GDAL_DATA é usada.
- postgis.gdal_enabled_drivers - Disponibilidade: 2.2.0 Uma opção de configuração para estabelecer os drivers GDAL ativados no ambiente POstGIS. Afeta a variável GDAL_SKIP do GDAL.
- |=| - Disponibilidade: 2.2.0. Index suportado disponível somente para PostgreSQL 9.5+ Retorna a distância entre As trajetórias A e B ao ponto de aproximação mais perto.
Functions enhanced in PostGIS 2.2
- <-> - melhorias: 2.2.0 -- Verdadeiro comportamento KNN ("vizinho mais perto de K") para geometria e geografia para PostgreSQL 9.5+. Note que para geografia o KNN é baseado em esfera ao invés de esferoide. Para o PostgreSQL 9.4 ou menor, o suporte para geografia é novo, mas só suporta caixa centroide. Retorna a distância 2D entre A e B.
- ST_Area - Melhorias: 2.2.0 - medição em esferoides desempenhada com GeographicLib para uma melhor precisão e força. Requer Proj >= 4.9.0 para tirar vantagem da nova característica. Retorna o centro geométrico de uma geometria.
- ST_AsX3D - Melhorias: 2.2.0: Suporte para GeoCoordinates e eixos (x/y, long/lat) lançando. Observe as opções para mais detalhes. Retorna uma geometria em X3D nó xml formato do elemento: ISO-IEC-19776-1.2-X3DEncodings-XML
- ST_Azimuth - Melhorias: 2.2.0 medição em esferoides desempenhada com GeographicLib para uma melhor precisão e força. Requer Proj >= 4.9.0 para tirar vantagem da nova característica. Retorna a menor linha 2-dimensional entre duas geometrias
- ST_Distance - Melhorias: 2.2.0 - medição em esferoides desempenhada com GeographicLib para uma melhor precisão e força. Requer Proj >= 4.9.0 para tirar vantagem da nova característica. Retorna a linha 3-dimensional mais longa entre duas geometrias
- ST_Scale - Enhanced: 2.2.0 support for scaling all dimension (factor parameter) was introduced. Scales a geometry by given factors.
- ST_Split - Enhanced: 2.2.0 support for splitting a line by a multiline, a multipoint or (multi)polygon boundary was introduced. Returns a collection of geometries created by splitting a geometry by another geometry.
- ST_Summary - Melhorias: 2.2.0 Suporte para TIN e Curvas adicionado Retorna um texto resumo dos conteúdos da geometria.
Functions changed in PostGIS 2.2
- <-> - Alterações: 2.2.0 -- Para usuários do PostgreSQL 9.5, a sintaxe Hybrid antiga pode ser ais lenta, então, você vai querer se livrar daquele hack se você está executando seu código só no PostGIS 2.2+ 9.5+. Veja os exemplos abaixo. Retorna a distância 2D entre A e B.
- ST_3DClosestPoint - Alterações: 2.2.0 - se 2 geometrias 2D são entradas, um ponto 2D retorna (em vez do antigo comportamento assumindo 0 para Z perdido). Em caso de 2D e 3D, o Z não é mais 0 para Z perdido. Retorna o ponto 3 dimensional em g1 que é o mais próximo de g2. Este é o primeiro ponto da linha mais curta em três dimensões.
- ST_3DDistance - Alterações: 2.2.0 - Em caso de 2D e 3D, o Z não é mais 0 para Z perdido. Para tipo geometria, retorna a menor distância cartesiana 3-dimensional (baseado no sistema de referência espacial) entre duas geometrias em unidades projetadas.
- ST_3DLongestLine - Alterações: 2.2.0 - se 2 geometrias 2D são entradas, um ponto 2D retorna (em vez do antigo comportamento assumindo 0 para Z perdido). Em caso de 2D e 3D, o Z não é mais 0 para Z perdido. Retorna a linha 3-dimensional mais longa entre duas geometrias
- ST_3DMaxDistance - Alterações: 2.2.0 - Em caso de 2D e 3D, o Z não é mais 0 para Z perdido. Para tipo de geometria retorna a maior distância 3-dimensional cartesiana (baseada na referência espacial) entre duas geometrias em unidade projetadas.
- ST_3DShortestLine - Alterações: 2.2.0 - se 2 geometrias 2D são entradas, um ponto 2D retorna (em vez do antigo comportamento assumindo 0 para Z perdido). Em caso de 2D e 3D, o Z não é mais 0 para Z perdido. Retorna a menor linha 3-dimensional entre duas geometrias
- ST_DistanceSphere - Alterações: 2.2.0 Em versões anteriores era chamada de ST_Distance_Sphere Retorna a menor distância entre duas geometrias lon/lat dado um esferoide específico. As versões anteriores a 1.5 só suportam pontos.
- ST_DistanceSpheroid - Alterações: 2.2.0 Em versões anteriores era chamada de ST_Distance_Spheroid Retorna a menor distância entre duas geometrias lon/lat dado um esferoide específico. As versões anteriores a 1.5 só suportam pontos.
- ST_Equals - Changed: 2.2.0 Returns true even for invalid geometries if they are binary equal Tests if two geometries include the same set of points
- ST_LengthSpheroid - Alterações: 2.2.0 Em versões anteriores era chamada de ST_Length_Spheroid e costumava ter um heterônimo ST_3DLength_Spheroid Retorna o centro geométrico de uma geometria.
- ST_MemSize - Changed: 2.2.0 name changed to ST_MemSize to follow naming convention. Retorna o tipo de geometria de valor ST_Geometry.
- ST_PointInsideCircle - Changed: 2.2.0 In prior versions this was called ST_Point_Inside_Circle Tests if a point geometry is inside a circle defined by a center and radius
12.12.10. PostGIS Functions new or enhanced in 2.1
The functions given below are PostGIS functions that were added or enhanced.
Functions new in PostGIS 2.1
- ST_3DArea - Disponibilidade: 2.1.0 Computa a área de geometrias de superfície 3D. Irá retornar 0 para sólidos.
- ST_3DIntersection - Disponibilidade: 2.1.0 Representar intersecção 3D
- ST_Box2dFromGeoHash - Disponibilidade: 2.1.0 Retorna uma CAIXA2D de uma string GeoHash.
- ST_DelaunayTriangles - Disponibilidade: 2.1.0 Returns the Delaunay triangulation of the vertices of a geometry.
- ST_Extrude - Disponibilidade: 2.1.0 Extrude uma superfície a um volume relacionado
- ST_ForceLHR - Disponibilidade: 2.1.0 Orientação força LHR
- ST_GeomFromGeoHash - Disponibilidade: 2.1.0 Retorna uma geometria de uma string GeoHash.
- ST_MinkowskiSum - Disponibilidade: 2.1.0 Representar soma Minkowski
- ST_Orientation - Disponibilidade: 2.1.0 Determine orientação da superfície
- ST_PointFromGeoHash - Disponibilidade: 2.1.0 Retorna um ponto de uma string GeoHash.
- ST_StraightSkeleton - Disponibilidade: 2.1.0 Calcule um esqueleto em linha reta de uma geometria
- ST_Tesselate - Disponibilidade: 2.1.0 Representa superfície tesselação de um polígono ou superfície poliédrica e retorna como uma TIN ou coleção de TINS
- postgis_sfcgal_version - Disponibilidade: 2.1.0 retorna a versão do SFCGAL em uso
Functions enhanced in PostGIS 2.1
- ST_AsGML - Melhorias: 2.1.0 suporte para id foi introduzido, para GML 3. Retorna a geometria como uma versão GML com 2 ou 3 elementos.
- ST_Boundary - Melhorias: 2.1.0 suporte para Triângulo foi introduzido Retorna o encerramento da borda combinatória dessa geometria.
- ST_DWithin - Enhanced: 2.1.0 improved speed for geography. See Making Geography faster for details. Tests if two geometries are within a given distance
- ST_DWithin - Enhanced: 2.1.0 support for curved geometries was introduced. Tests if two geometries are within a given distance
- ST_Distance - Melhorias: 2.1.0 velocidade melhorada para geografia. Veja Making Geography faster para mais detalhes. Retorna a linha 3-dimensional mais longa entre duas geometrias
- ST_Distance - Melhorias: 2.1.0 - suporte para geometrias curvas foi introduzido. Retorna a linha 3-dimensional mais longa entre duas geometrias
- ST_DumpPoints - Enhanced: 2.1.0 Faster speed. Reimplemented as native-C. Retorna um texto resumo dos conteúdos da geometria.
- ST_MakeValid - Enhanced: 2.1.0, added support for GEOMETRYCOLLECTION and MULTIPOINT. Attempts to make an invalid geometry valid without losing vertices.
- ST_Segmentize - Melhorias: 2.1.0 suporte para geografia foi introduzido. Returns a modified geometry/geography having no segment longer than a given distance.
- ST_Summary - melhorias: 2.1.0 Bandeira S para indicar se existe um sistema de referência espacial conhecido Retorna um texto resumo dos conteúdos da geometria.
Functions changed in PostGIS 2.1
- ST_EstimatedExtent - Changed: 2.1.0. Up to 2.0.x this was called ST_Estimated_Extent. Returns the estimated extent of a spatial table.
- ST_Force2D - Alterado: 2.1.0. Até versão 2.0.x isto era chamado de ST_Force_2D. Força a geometria para o modo de 2 dimensões.
- ST_Force3D - Alterado: 2.1.0. Até versão 2.0.x isto era chamado de ST_Force_3D. Força a geometria para um modo XYZ. Este é um apelido para a função ST_Force_3DZ.
- ST_Force3DM - Alterado: 2.1.0. Até a versão 2.0.x esta função era chamada de ST_Force_3DM. Força as geometrias para o modo XYM.
- ST_Force3DZ - Alterado: 2.1.0. Até versão 2.0.x isto era chamado de ST_Force_3DZ. Força as geometrias para o modo XYZ.
- ST_Force4D - Alterado: 2.1.0. Até a versão 2.0.x esta função era chamada ST_Force_4D. Força as geometrias para o modo XYZM.
- ST_ForceCollection - Alterado: 2.1.0. Até a versão 2.0.x esta função era chamada de ST_Force_Collection. Converte a geometria para um GEOMETRYCOLLECTION.
- ST_LineInterpolatePoint - Alterações: 2.1.0 para 2.0.x foi chamada ST_Line_Interpolate_Point. Returns a point interpolated along a line at a fractional location.
- ST_LineLocatePoint - Alterações: 2.1.0 para 2.0.x foi chamada ST_Line_Locate_Point. Returns the fractional location of the closest point on a line to a point.
- ST_LineSubstring - Alterações: 2.1.0 para 2.0.x foi chamada ST_Line_Substring. Returns the part of a line between two fractional locations.
- ST_Segmentize - Changed: 2.1.0 As a result of the introduction of geography support, the usage ST_Segmentize('LINESTRING(1 2, 3 4)', 0.5) causes an ambiguous function error. The input needs to be properly typed as a geometry or geography. Use ST_GeomFromText, ST_GeogFromText or a cast to the required type (e.g. ST_Segmentize('LINESTRING(1 2, 3 4)'::geometry, 0.5) ) Returns a modified geometry/geography having no segment longer than a given distance.
12.12.11. PostGIS Functions new or enhanced in 2.0
The functions given below are PostGIS functions that were added or enhanced.
Functions new in PostGIS 2.0
- &&& - Disponibilidade: 2.0.0 Retorna VERDADE se a caixa limitadora n-D de A intersecta a caixa limitadora n-D de B.
- <#> - Disponibilidade: 2.0.0 -- KNN só está disponível para PostgreSQL 9.1+ Retorna a distância 2D entre as caixas limitadoras de A e B.
- <-> - Disponibilidade: 2.0.0 -- O KNN mais fraco fornece vizinho mais próximos baseados em distâncias centroides de geometrias, ao invés de distâncias reais. Resultados corretos para pontos, incorretos para todos os outros tipos. Disponível para PostgreSQL 9.1+ Retorna a distância 2D entre A e B.
- ST_3DClosestPoint - Disponibilidade: 2.0.0 Retorna o ponto 3 dimensional em g1 que é o mais próximo de g2. Este é o primeiro ponto da linha mais curta em três dimensões.
- ST_3DDFullyWithin - Availability: 2.0.0 Tests if two 3D geometries are entirely within a given 3D distance
- ST_3DDWithin - Availability: 2.0.0 Tests if two 3D geometries are within a given 3D distance
- ST_3DDistance - Disponibilidade: 2.0.0 Para tipo geometria, retorna a menor distância cartesiana 3-dimensional (baseado no sistema de referência espacial) entre duas geometrias em unidades projetadas.
- ST_3DIntersects - Availability: 2.0.0 Tests if two geometries spatially intersect in 3D - only for points, linestrings, polygons, polyhedral surface (area)
- ST_3DLongestLine - Disponibilidade: 2.0.0 Retorna a linha 3-dimensional mais longa entre duas geometrias
- ST_3DMaxDistance - Disponibilidade: 2.0.0 Para tipo de geometria retorna a maior distância 3-dimensional cartesiana (baseada na referência espacial) entre duas geometrias em unidade projetadas.
- ST_3DShortestLine - Disponibilidade: 2.0.0 Retorna a menor linha 3-dimensional entre duas geometrias
- ST_AsLatLonText - Disponibilidade: 2.0 Retorna a representação de Graus, Minutos, Segundos do ponto dado.
- ST_AsX3D - Disponibilidade: 2.0.0: ISO-IEC-19776-1.2-X3DEncodings-XML Retorna uma geometria em X3D nó xml formato do elemento: ISO-IEC-19776-1.2-X3DEncodings-XML
- ST_CollectionHomogenize - Disponibilidade: 2.0.0 Returns the simplest representation of a geometry collection.
- ST_ConcaveHull - Disponibilidade: 2.0.0 Computes a possibly concave geometry that contains all input geometry vertices
- ST_FlipCoordinates - Disponibilidade: 2.0.0 Returns a version of a geometry with X and Y axis flipped.
- ST_GeomFromGeoJSON - Disponibilidade: 2.0.0 requer - JSON-C >= 0.9 Utiliza como entrada uma representação geojson de uma geometria e como saída um objeto de geometria PostGIS
- ST_InterpolatePoint - Disponibilidade: 2.0.0 Retorna o valor da dimensão de medida da geometria no ponto fechado para o ponto fornecido.
- ST_IsValidDetail - Availability: 2.0.0 Returns a valid_detail row stating if a geometry is valid or if not a reason and a location.
- ST_IsValidReason - Availability: 2.0 version taking flags. Returns text stating if a geometry is valid, or a reason for invalidity.
- ST_MakeLine - Disponibilidad: 2.0.0 - Suporte para elementos de entrada linestring foi introduzido Cria uma Linestring de ponto, multiponto ou linha das geometrias.
- ST_MakeValid - Availability: 2.0.0 Attempts to make an invalid geometry valid without losing vertices.
- ST_Node - Availability: 2.0.0 Nodes a collection of lines.
- ST_NumPatches - Disponibilidade: 2.0.0 Retorna o número de faces em uma superfícies poliédrica. Retornará nulo para geometrias não poliédricas.
- ST_OffsetCurve - Disponibilidade: 2.0 Returns an offset line at a given distance and side from an input line.
- ST_PatchN - Disponibilidade: 2.0.0 Retorna o tipo de geometria de valor ST_Geometry.
- ST_Perimeter - Disponibilidade 2.0.0: Suporte para geografia foi introduzido Returns the length of the boundary of a polygonal geometry or geography.
- ST_Project - Disponibilidade: 2.0.0 Returns a point projected from a start point by a distance and bearing (azimuth).
- ST_RelateMatch - Availability: 2.0.0 Tests if a DE-9IM Intersection Matrix matches an Intersection Matrix pattern
- ST_SharedPaths - Disponibilidade: 2.0.0 Retorna uma coleção contendo caminhos compartilhados pelas duas linestrings/multilinestrings de entrada.
- ST_Snap - Disponibilidade: 2.0.0 Rompe segmentos e vértices de geometria de entrada para vértices de uma geometria de referência.
- ST_Split - Availability: 2.0.0 requires GEOS Returns a collection of geometries created by splitting a geometry by another geometry.
- ST_UnaryUnion - Availability: 2.0.0 Computes the union of the components of a single geometry.
Functions enhanced in PostGIS 2.0
- && - Melhorias: 2.0.0 suporte a superfícies poliédricas foi introduzido. Retorna VERDADE se a caixa limitadora 2D de A intersecta a caixa limitadora 2D de B.
- AddGeometryColumn - Melhorias: 2.0.0 argumento use_typmod introduzido. Padrões para criar colunas de geometria typmod ao invés das baseadas em obstáculos. Remove uma coluna geometria de uma spatial table.
- Box2D - Enhanced: 2.0.0 support for Polyhedral surfaces, Triangles and TIN was introduced. Returns a BOX2D representing the 2D extent of a geometry.
- Box3D - Enhanced: 2.0.0 support for Polyhedral surfaces, Triangles and TIN was introduced. Returns a BOX3D representing the 3D extent of a geometry.
- GeometryType - Melhorias: 2.0.0 suporte para superfícies poliédricas, triângulos e TIN introduzido. Retorna o tipo de geometria de valor ST_Geometry.
- Populate_Geometry_Columns - Melhorias: 2.0.0 use_typmod argumento opcional foi introduzido, permitindo controlar se as colunas forem criadas com modificadores de tipo ou com verificação de restrições. Ensures geometry columns are defined with type modifiers or have appropriate spatial constraints.
- ST_3DExtent - Enhanced: 2.0.0 support for Polyhedral surfaces, Triangles and TIN was introduced. Aggregate function that returns the 3D bounding box of geometries.
- ST_Affine - Enhanced: 2.0.0 support for Polyhedral surfaces, Triangles and TIN was introduced. Apply a 3D affine transformation to a geometry.
- ST_Area - Melhorias: 2.0.0 - suporte a superfícies 2D poliédricas foi introduzido. Retorna o centro geométrico de uma geometria.
- ST_AsBinary - Melhorias: 2.0.0 suporte para superfícies poliédricas, triângulos e TINs introduzido. Return the OGC/ISO Well-Known Binary (WKB) representation of the geometry/geography without SRID meta data.
- ST_AsBinary - Melhorias: 2.0.0 suporte para maiores dimensões de coordenadas foi introduzido. Return the OGC/ISO Well-Known Binary (WKB) representation of the geometry/geography without SRID meta data.
- ST_AsBinary - Melhorias: 2.0.0 suporte para edian especificando com geografia foi introduzido. Return the OGC/ISO Well-Known Binary (WKB) representation of the geometry/geography without SRID meta data.
- ST_AsEWKB - Melhorias: 2.0.0 suporte para superfícies poliédricas, triângulos e TINs introduzido. Return the Extended Well-Known Binary (EWKB) representation of the geometry with SRID meta data.
- ST_AsEWKT - Melhorias: 2.0.0 suporte para geografia, superfícies poliédricas, triângulos e TIN foi introduzido. Retorna a representação de texto bem conhecida (WKT) da geometria com os meta dados SRID.
- ST_AsGML - Melhorias: 2.0.0 prefixo suportado foi introduzido. A opção 4 para o GML3 foi introduzida para permitir a utilização da LineString em vez da tag Curva para linhas. O suporte GML3 para superfícies poliédricas e TINS foi introduzidos. A Opção 32 foi introduzida para gerar a caixa. Retorna a geometria como uma versão GML com 2 ou 3 elementos.
- ST_AsKML - Melhorias: 2.0.0 - Adiciona namespace prefixo. O padrão é não ter nenhum prefixo Retorna a geometria como uma versão GML com 2 ou 3 elementos.
- ST_Azimuth - Melhorias: 2.0.0 suporte para geografia foi introduzido. Retorna a menor linha 2-dimensional entre duas geometrias
- ST_Dimension - Melhorias: 2.0.0 suporte para superfícies poliédricas e TINs foi introduzido. Não abre mais exceção se uma geometria vazia é dada. Retorna a dimensão da coordenada do valor ST_Geometry.
- ST_Dump - Melhorias: 2.0.0 suporte para superfícies poliédricas, triângulos e TIN introduzido. Returns a set of geometry_dump rows for the components of a geometry.
- ST_DumpPoints - Melhorias: 2.0.0 suporte para superfícies poliédricas, triângulos e TIN introduzido. Retorna um texto resumo dos conteúdos da geometria.
- ST_Expand - Enhanced: 2.0.0 support for Polyhedral surfaces, Triangles and TIN was introduced. Returns a bounding box expanded from another bounding box or a geometry.
- ST_Extent - Enhanced: 2.0.0 support for Polyhedral surfaces, Triangles and TIN was introduced. Aggregate function that returns the bounding box of geometries.
- ST_Force2D - Melhorias: 2.0.0 suporte a superfícies polihédricas foi introduzido. Força a geometria para o modo de 2 dimensões.
- ST_Force3D - Melhorias: 2.0.0 suporte a superfícies polihédricas foi introduzido. Força a geometria para um modo XYZ. Este é um apelido para a função ST_Force_3DZ.
- ST_Force3DZ - Melhorias: 2.0.0 suporte a superfícies polihédricas foi introduzido. Força as geometrias para o modo XYZ.
- ST_ForceCollection - Melhorias: 2.0.0 suporte a superfícies polihédricas foi introduzido. Converte a geometria para um GEOMETRYCOLLECTION.
- ST_ForceRHR - Melhorias: 2.0.0 suporte a superfícies polihédricas foi introduzido. Força a orientação dos vértices em um polígono a seguir a regra da mão direita.
- ST_GMLToSQL - Melhorias: 2.0.0 suporte para superfícies poliédricas e TIN foi introduzido. Retorna um valor ST_Geometry específico da representação GML. Esse é um heterônimo para ST_GeomFromGML
- ST_GMLToSQL - Melhorias: 2.0.0 parâmetro opcional padrão srid adicionado. Retorna um valor ST_Geometry específico da representação GML. Esse é um heterônimo para ST_GeomFromGML
- ST_GeomFromEWKB - Melhorias: 2.0.0 suporte para superfícies poliédricas e TIN foi introduzido. Retorna um valor ST_Geometry especifico da representação binária estendida bem conhecida (EWKB).
- ST_GeomFromEWKT - Melhorias: 2.0.0 suporte para superfícies poliédricas e TIN foi introduzido. Retorna um valor ST_Geometry especifico da representação de texto estendida bem conhecida (EWKT).
- ST_GeomFromGML - Melhorias: 2.0.0 suporte para superfícies poliédricas e TIN foi introduzido. Utiliza como entrada uma representação GML de geometria e como saída um objeto de geometria PostGIS
- ST_GeomFromGML - Melhorias: 2.0.0 parâmetro opcional padrão srid adicionado. Utiliza como entrada uma representação GML de geometria e como saída um objeto de geometria PostGIS
- ST_GeometryN - Melhorias: 2.0.0 suporte para superfícies poliédricas, triângulos e TIN introduzido. Retorna o tipo de geometria de valor ST_Geometry.
- ST_GeometryType - Melhorias: 2.0.0 suporte a superfícies poliédricas foi introduzido. Retorna o tipo de geometria de valor ST_Geometry.
- ST_IsClosed - Melhorias: 2.0.0 suporte a superfícies poliédricas foi introduzido. Retorna VERDADEIRO se os pontos de começo e fim da LINESTRING são coincidentes. Para superfície poliédrica está fechada (volumétrica).
- ST_MakeEnvelope - Melhorias: 2.0: Habilidade para especificar um pacote sem especificar um SRID foi introduzida. Cria um polígono retangular formado a partir dos mínimos e máximos dados. Os valores de entrada devem ser em SRS especificados pelo SRID.
- ST_MakeValid - Enhanced: 2.0.1, speed improvements Attempts to make an invalid geometry valid without losing vertices.
- ST_NPoints - Melhorias: 2.0.0 suporte a superfícies poliédricas foi introduzido. Retorna o número de pontos (vértices) em uma geometria.
- ST_NumGeometries - Melhorias: 2.0.0 suporte para superfícies poliédricas, triângulos e TIN introduzido. Retorna o número de pontos em uma geometria. Funciona para todas as geometrias.
- ST_Relate - Enhanced: 2.0.0 - added support for specifying boundary node rule. Tests if two geometries have a topological relationship matching an Intersection Matrix pattern, or computes their Intersection Matrix
- ST_Rotate - Enhanced: 2.0.0 support for Polyhedral surfaces, Triangles and TIN was introduced. Rotates a geometry about an origin point.
- ST_Rotate - Enhanced: 2.0.0 additional parameters for specifying the origin of rotation were added. Rotates a geometry about an origin point.
- ST_RotateX - Enhanced: 2.0.0 support for Polyhedral surfaces, Triangles and TIN was introduced. Rotates a geometry about the X axis.
- ST_RotateY - Enhanced: 2.0.0 support for Polyhedral surfaces, Triangles and TIN was introduced. Rotates a geometry about the Y axis.
- ST_RotateZ - Enhanced: 2.0.0 support for Polyhedral surfaces, Triangles and TIN was introduced. Rotates a geometry about the Z axis.
- ST_Scale - Enhanced: 2.0.0 support for Polyhedral surfaces, Triangles and TIN was introduced. Scales a geometry by given factors.
- ST_ShiftLongitude - Melhorias: 2.0.0 suporte para superfícies poliédricas e TIN foi introduzido. Shifts the longitude coordinates of a geometry between -180..180 and 0..360.
- ST_Summary - Melhorias: 2.0.0 suporte para geografia adicionado Retorna um texto resumo dos conteúdos da geometria.
- ST_Transform - Enhanced: 2.0.0 support for Polyhedral surfaces was introduced. Return a new geometry with coordinates transformed to a different spatial reference system.
Functions changed in PostGIS 2.0
- AddGeometryColumn - Alterado: 2.0.0 Essa função não atualiza mais a geometry_columns desde que ela é a view que lê dos catálogos de sistema. Por padrão, isso não cria restrições, mas usa a construção no comportamento do tipo modificador do PostgreSQL. Então, por exemplo, construir uma coluna wgs84 POINT com essa função é equivalente a: ALTER TABLE some_table ADD COLUMN geom geometry(Point,4326); Remove uma coluna geometria de uma spatial table.
- AddGeometryColumn - Alterado: 2.0.0 Se você exige o comportamento antigo de restrições use o padrão use_typmod, mas configure isso para falso. Remove uma coluna geometria de uma spatial table.
- AddGeometryColumn - Alterações: 2.0.0 Views não podem ser registradas manualmente mais em geometry_columns, porém as views construídas contra as geometrias typmod tables e usadas sem as funções wrapper irão se registrar corretamente, porque elas herdam um comportamento typmod da table column mãe. As views que usam funções geométricas que fazem outras geometrias saírem, precisarão de ser lançadas para as geometrias typmod, para essas colunas serem registradas corretamente em geometry_columns. Use . Remove uma coluna geometria de uma spatial table.
- DropGeometryColumn - Alterações: 2.0.0 Essa função é fornecida para compatibilidade atrasada. Desde que geometry_columns é uma view contra os sistemas catalogados, você pode derrubar uma coluna geométrica como qualquer outra table column usando ALTERAR TABLE Remove uma coluna geometria de uma spatial table.
- DropGeometryTable - Alterações: 2.0.0 Essa função é fornecida para compatibilidade atrasada. Desde que geometry_columns é uma view contra os sistemas catalogados, você pode derrubar uma table com colunas geométricas como qualquer outra table usando DERRUBAR TABLE Derruba uma table e todas suas referências em geometry_columns.
- Populate_Geometry_Columns - Alterações: 2.0.0 Por padrão, utilize modificadores de tipo ao invés de verificar restrições para restringir os tipos de geometria. Você pode verificar restrições de comportamento ao invés de usar o novo use_typmod e configurá-lo para falso. Ensures geometry columns are defined with type modifiers or have appropriate spatial constraints.
- ST_3DExtent - Changed: 2.0.0 In prior versions this used to be called ST_Extent3D Aggregate function that returns the 3D bounding box of geometries.
- ST_3DLength - Alterações: 2.0.0 Nas versões anteriores era chamado de ST_Length3D Retorna o centro geométrico de uma geometria.
- ST_3DMakeBox - Changed: 2.0.0 In prior versions this used to be called ST_MakeBox3D Creates a BOX3D defined by two 3D point geometries.
- ST_3DPerimeter - Alterações: 2.0.0 Nas versões anteriores era chamado de ST_Perimeter3D Retorna o centro geométrico de uma geometria.
- ST_AsBinary - Alterações: 2.0.0 Entrada para esta função não pode ser desconhecida -- deve ser geometria. Construções como ST_AsBinary('POINT(1 2)') não são mais válidas e você terá n st_asbinary(desconhecido) não é um erro único. Códigos assim, precisam ser alterados para ST_AsBinary('POINT(1 2)'::geometry);. Se não for possível, instale: legacy.sql. Return the OGC/ISO Well-Known Binary (WKB) representation of the geometry/geography without SRID meta data.
- ST_AsGML - Alterações: 2.0.0 use argumentos nomeados por padrão Retorna a geometria como uma versão GML com 2 ou 3 elementos.
- ST_AsGeoJSON - Alterações: 2.0.0 suporte padrão args e args nomeados. Return a geometry as a GeoJSON element.
- ST_AsSVG - Alterações: 2.0.0 para usar args padrão e suporta args nomeados Returns SVG path data for a geometry.
- ST_EndPoint - Alterações: 2.0.0 não funciona mais com geometrias de multilinestrings. Em verões mais antigas do PostGIS -- uma linha multilinestring sozinha trabalharia normalmente com essa função e voltaria o ponto de início. Na 2.0.0 ela retorna NULA como qualquer outra multilinestring. O antigo comportamento não foi uma característica documentada, mas as pessoas que consideravam que tinham seus dados armazenados como uma LINESTRING, agora podem experimentar essas que retornam NULAS em 2.0. Retorna o número de pontos em um valor ST_LineString ou ST_CircularString.
- ST_GeomFromText - Alterações: 2.0.0 Nas primeiras versões do PostGIS, ST_GeomFromText('GEOMETRYCOLLECTION(EMPTY)') foi permitida. Ela agora é ilegal no PostGIS 2.0.0 para melhor se adequar aos padrões SQL/MM. Ela deverá se escrita como ST_GeomFromText('GEOMETRYCOLLECTION EMPTY') Retorna um valor ST_Geometry específico da representação de texto bem conhecida (WKT).
- ST_GeometryN - Alterações: 2.0.0. Versões anteriores voltariam NULAS para geometrias únicas. Isso foi alterado para volrtar a geometria para o caso ST_GeometryN(..,1). Retorna o tipo de geometria de valor ST_Geometry.
- ST_IsEmpty - Alterações: 2.0.0 Nas versões anteriores do PostGIS ST_GeomFromText('GEOMETRYCOLLECTION(EMPTY)') era permitido. Agora isso é ilegal no PostGIS 2.0.0 para se adequar aos padrões SQL/MM. Tests if a geometry is empty.
- ST_Length - Alterações: 2.0.0 Quebrando a mudança -- nas versões anteriores aplicar isto a um MULTI/POLÍGONO de tipo de geografia lhe daria o perímetro do POLÍGONO/MULTIPOLÍGONO. Na 2.0.0 isso é alterado para retornar 0 a estar na linha com o comportamento da geometria. Por favor, utilize a ST_Perimeter se quiser o perímetro de um polígono Retorna o centro geométrico de uma geometria.
- ST_LocateAlong - Alterações: 2.0.0 nas versões anteriores era chamado de ST_Locate_Along_Measure. O nome antigo foi menosprezado e será removido no futuro, mas ainda está disponível. Returns the point(s) on a geometry that match a measure value.
- ST_LocateBetween - Alterações: 2.0.0 nas versões anteriores era chamado de ST_Locate_Along_Measure. O nome antigo foi menosprezado e será removido no futuro, mas ainda está disponível. Returns the portions of a geometry that match a measure range.
- ST_NumGeometries - Alterações: 2.0.0 Em versões anteriores retornaria NULO se a geometria não fosse do tipo coleção/MULTI. 2.0.0+ agora retorna 1 para geometrias únicas ex: POLÍGONO, LINESTRING, PONTO. Retorna o número de pontos em uma geometria. Funciona para todas as geometrias.
- ST_NumInteriorRings - Alterações: 2.0.0 - nas versões anteriores isso permitiria um MULTIPOLÍGONO, retornando o número de anéis interiores do primeiro POLÍGONO. Retorna o número de anéis interiores de um polígono.
- ST_PointN - Alterações: 2.0.0 não funciona mais com geometrias multilinestrings únicas. Em verões mais antigas do PostGIS -- uma única linha multilinestring trabalharia normalmente e retornaria o ponto inicial. Na 2.0.0 só retorna NULA como qualquer outra multilinestring. Retorna o número de pontos em um valor ST_LineString ou ST_CircularString.
- ST_StartPoint - Alterações: 2.0.0 não funciona mais com geometrias de multilinestrings. Em verões mais antigas do PostGIS -- uma linha multilinestring sozinha trabalharia normalmente com essa função e voltaria o ponto de início. Na 2.0.0 ela retorna NULA como qualquer outra multilinestring. O antigo comportamento não foi uma característica documentada, mas as pessoas que consideravam que tinham seus dados armazenados como uma LINESTRING, agora podem experimentar essas que retornam NULAS em 2.0. Returns the first point of a LineString.
12.12.12. PostGIS Functions new or enhanced in 1.5
The functions given below are PostGIS functions that were added or enhanced.
Functions new in PostGIS 1.5
- && - Disponibilidade: 1.5.0 Suporte para geografia foi introduzido Retorna VERDADE se a caixa limitadora 2D de A intersecta a caixa limitadora 2D de B.
- PostGIS_LibXML_Version - Availability: 1.5 Returns the version number of the libxml2 library.
- ST_AddMeasure - Disponibilidade: 1.5.0 Interpolates measures along a linear geometry.
- ST_AsBinary - Disponibilidade: 1.5.0 suporte para geografia foi introduzido. Return the OGC/ISO Well-Known Binary (WKB) representation of the geometry/geography without SRID meta data.
- ST_AsGML - Disponibilidade: 1.5.0 suporte para geografia foi introduzido. Retorna a geometria como uma versão GML com 2 ou 3 elementos.
- ST_AsGeoJSON - Disponibilidade: 1.5.0 suporte para geografia foi introduzido. Return a geometry as a GeoJSON element.
- ST_AsText - Disponibilidade: 1.5 - suporte para geografia foi introduzido. Retorna a representação de texto bem conhecida (WKT) da geometria/geografia sem os meta dados do SRID.
- ST_Buffer - Availability: 1.5 - ST_Buffer was enhanced to support different endcaps and join types. These are useful for example to convert road linestrings into polygon roads with flat or square edges instead of rounded edges. Thin wrapper for geography was added. Computes a geometry covering all points within a given distance from a geometry.
- ST_ClosestPoint - Disponibilidade: 1.5.0 Returns the 2D point on g1 that is closest to g2. This is the first point of the shortest line from one geometry to the other.
- ST_CollectionExtract - Disponibilidade: 1.5.0 Given a geometry collection, returns a multi-geometry containing only elements of a specified type.
- ST_Covers - Availability: 1.5 - support for geography was introduced. Tests if every point of B lies in A
- ST_DFullyWithin - Availability: 1.5.0 Tests if two geometries are entirely within a given distance
- ST_DWithin - Availability: 1.5.0 support for geography was introduced Tests if two geometries are within a given distance
- ST_Distance - Disponibilidade: 1.5.0 suporte de geografia foi introduzido em 1.5. Melhorias na velocidade para planar para lidar melhor com mais ou maiores vértices de geometrias. Retorna a linha 3-dimensional mais longa entre duas geometrias
- ST_DistanceSphere - Disponibilidade: 1.5 - suporte para outros tipos de geometria além de pontos foi introduzido. As versões anteriores só funcionam com pontos. Retorna a menor distância entre duas geometrias lon/lat dado um esferoide específico. As versões anteriores a 1.5 só suportam pontos.
- ST_DistanceSpheroid - Disponibilidade: 1.5 - suporte para outros tipos de geometria além de pontos foi introduzido. As versões anteriores só funcionam com pontos. Retorna a menor distância entre duas geometrias lon/lat dado um esferoide específico. As versões anteriores a 1.5 só suportam pontos.
- ST_DumpPoints - Disponibilidade: 1.2.2 Retorna um texto resumo dos conteúdos da geometria.
- ST_Envelope - Disponibilidade: 1.5.0 comportamento alterado para saída de precisão dupla ao invés de float4 Retorna uma geometria representando a precisão da dobrada (float8) da caixa limitada da geometria fornecida.
- ST_Expand - Availability: 1.5.0 behavior changed to output double precision instead of float4 coordinates. Returns a bounding box expanded from another bounding box or a geometry.
- ST_GMLToSQL - Disponibilidade:1.5, requer libxml2 1.6+ Retorna um valor ST_Geometry específico da representação GML. Esse é um heterônimo para ST_GeomFromGML
- ST_GeomFromGML - Disponibilidade:1.5, requer libxml2 1.6+ Utiliza como entrada uma representação GML de geometria e como saída um objeto de geometria PostGIS
- ST_GeomFromKML - Availability: 1.5, requires libxml2 2.6+ Utiliza como entrada uma representação KML de geometria e como saída um objeto de geometria PostGIS
- ST_HausdorffDistance - Disponibilidade: 1.5.0 Retorna a menor linha 3-dimensional entre duas geometrias
- ST_Intersection - Availability: 1.5 support for geography data type was introduced. Computes a geometry representing the shared portion of geometries A and B.
- ST_Intersects - Availability: 1.5 support for geography was introduced. Tests if two geometries intersect (they have at least one point in common)
- ST_Length - Disponibilidade: 1.5.0 suporte para geografia foi introduzido em 1.5. Retorna o centro geométrico de uma geometria.
- ST_LongestLine - Disponibilidade: 1.5.0 Retorna a linha 3-dimensional mais longa entre duas geometrias
- ST_MakeEnvelope - Disponibilidade: 1.5 Cria um polígono retangular formado a partir dos mínimos e máximos dados. Os valores de entrada devem ser em SRS especificados pelo SRID.
- ST_MaxDistance - Disponibilidade: 1.5.0 Retorna a maior distância 2-dimensional entre duas geometrias em unidades projetadas.
- ST_ShortestLine - Disponibilidade: 1.5.0 Retorna a menor linha 2-dimensional entre duas geometrias
- ~= - Disponibilidade: 1.5.0 comportamento alterado Retorna VERDADE se a caixa limitadora de A é a mesma de B.
12.12.13. PostGIS Functions new or enhanced in 1.4
The functions given below are PostGIS functions that were added or enhanced.
Functions new in PostGIS 1.4
- Populate_Geometry_Columns - Disponibilidade: 1.4.0 Ensures geometry columns are defined with type modifiers or have appropriate spatial constraints.
- ST_Collect - Disponibilidade: 1.4.0 - ST_MakeLine(geomarray) foi introduzida. A ST_MakeLine agrega funções que foram melhoradas para lidar com mais pontos mais rápido. Creates a GeometryCollection or Multi* geometry from a set of geometries.
- ST_ContainsProperly - Availability: 1.4.0 Tests if every point of B lies in the interior of A
- ST_GeoHash - Disponibilidade: 1.4.0 Retorna uma representação GeoHash da geometria.
- ST_IsValidReason - Availability: 1.4 Returns text stating if a geometry is valid, or a reason for invalidity.
- ST_LineCrossingDirection - Availability: 1.4 Returns a number indicating the crossing behavior of two LineStrings
- ST_LocateBetweenElevations - Disponibilidade: 1.4.0 Returns the portions of a geometry that lie in an elevation (Z) range.
- ST_MakeLine - Disponibilidade: 1.4.0 - ST_MakeLine(geomarray) foi introduzida. A ST_MakeLine agrega funções que foram melhoradas para lidar com mais pontos mais rápido. Cria uma Linestring de ponto, multiponto ou linha das geometrias.
- ST_MinimumBoundingCircle - Disponibilidade: 1.4.0 Returns the smallest circle polygon that contains a geometry.
- ST_Union - Availability: 1.4.0 - ST_Union was enhanced. ST_Union(geomarray) was introduced and also faster aggregate collection in PostgreSQL. Computes a geometry representing the point-set union of the input geometries.
12.12.14. PostGIS Functions new or enhanced in 1.3
The functions given below are PostGIS functions that were added or enhanced.
Functions new in PostGIS 1.3
- ST_AsGML - Disponibilidade: 1.3.2 Retorna a geometria como uma versão GML com 2 ou 3 elementos.
- ST_AsGeoJSON - Disponibilidade: 1.3.4 Return a geometry as a GeoJSON element.
- ST_CurveToLine - Availability: 1.3.0 Converts a geometry containing curves to a linear geometry.
- ST_LineToCurve - Availability: 1.3.0 Converts a linear geometry to a curved geometry.
- ST_SimplifyPreserveTopology - Disponibilidade: 1.3.3 Returns a simplified and valid version of a geometry, using the Douglas-Peucker algorithm.