
# PostGIS支持和限制
#### 支持数据类型
DWS的PostGIS Extension支持如下数据类型:
- box2d
- box3d
- geometry_dump
- geometry
- geography
- raster
![](https://support.huaweicloud.com/devg-dws/public_sys-resources/caution_3.0-zh-cn.png)
- PostGIS-3.2.2暂不支持raster相关功能，如需使用相关功能，请使用PostGIS-2.4.2。
- 创建Postgis和使用Postgis非同一用户时，请设置如下GUC参数：
  ```
  SET behavior_compat_options = 'bind_procedure_searchpath';
  ```
  
 
#### 支持的操作符和函数列表
![](https://support.huaweicloud.com/devg-dws/public_sys-resources/note_3.0-zh-cn.png)
PostGIS笛卡尔积ST_Intersects函数拥有缓存机制，外表的空间数据结构缓存命中率较高，在内表和外表的宽度有较大差异时，缓存宽表的数据可以避免多次加载大对象至缓存，对于性能的优化尤为明显，实际使用时可以通过[Join顺序的Hint](https://support.huaweicloud.com/devg-dws/dws_04_0456.html)指定宽表作为外表使计划符合该场景。
表1**PostGIS-2.4.2支持的操作符和函数列表** 
| 函数分类                                   | 包含函数                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
|:---|:---|
| Management Functions                   | AddGeometryColumn、DropGeometryColumn、DropGeometryTable、PostGIS_Full_Version、PostGIS_GEOS_Version、PostGIS_Liblwgeom_Version、PostGIS_Lib_Build_Date、PostGIS_Lib_Version、PostGIS_PROJ_Version、PostGIS_Scripts_Build_Date、PostGIS_Scripts_Installed、PostGIS_Version、PostGIS_LibXML_Version、PostGIS_Scripts_Released、Populate_Geometry_Columns 、UpdateGeometrySRID                                                                                                                                                                                                                                                                                                                                                                 |
| Geometry Constructors                  | ST_BdPolyFromText 、ST_BdMPolyFromText 、ST_Box2dFromGeoHash、ST_GeogFromText、ST_GeographyFromText、ST_GeogFromWKB、ST_GeomCollFromText、ST_GeomFromEWKB、ST_GeomFromEWKT、ST_GeometryFromText、ST_GeomFromGeoHash、ST_GeomFromGML、ST_GeomFromGeoJSON、ST_GeomFromKML、ST_GMLToSQL、ST_GeomFromText 、ST_GeomFromWKB、ST_LineFromMultiPoint、ST_LineFromText、ST_LineFromWKB、ST_LinestringFromWKB、ST_MakeBox2D、ST_3DMakeBox、ST_MakeEnvelope、ST_MakePolygon、ST_MakePoint、ST_MakePointM、ST_MLineFromText、ST_MPointFromText、ST_MPolyFromText、ST_Point、ST_PointFromGeoHash、ST_PointFromText、ST_PointFromWKB、ST_Polygon、ST_PolygonFromText、ST_WKBToSQL、ST_WKTToSQL                                                                                  |
| Geometry Accessors                     | GeometryType、ST_Boundary、ST_CoordDim、ST_Dimension、ST_EndPoint、ST_Envelope、ST_ExteriorRing、ST_GeometryN、ST_GeometryType、ST_InteriorRingN、ST_IsClosed、ST_IsCollection、ST_IsEmpty、ST_IsRing、ST_IsSimple、ST_IsValid、ST_IsValidReason、ST_IsValidDetail、ST_M、ST_NDims、ST_NPoints、ST_NRings、ST_NumGeometries、ST_NumInteriorRings、ST_NumInteriorRing、ST_NumPatches、ST_NumPoints、ST_PatchN、ST_PointN、ST_SRID、ST_StartPoint、ST_Summary、ST_X、ST_XMax、ST_XMin、ST_Y、ST_YMax、ST_YMin、ST_Z、ST_ZMax、ST_Zmflag、ST_ZMin                                                                                                                                                                                                                         |
| Geometry Editors                       | ST_AddPoint、ST_Affine、ST_Force2D、ST_Force3D、ST_Force3DZ、ST_Force3DM、ST_Force4D、ST_ForceCollection、ST_ForceSFS、ST_ForceRHR、ST_LineMerge、ST_CollectionExtract、ST_CollectionHomogenize、ST_Multi、ST_RemovePoint、ST_Reverse、ST_Rotate、ST_RotateX、ST_RotateY、ST_RotateZ、ST_Scale、ST_Segmentize、ST_SetPoint、ST_SetSRID、ST_SnapToGrid、ST_Snap、ST_Transform、ST_Translate、ST_TransScale                                                                                                                                                                                                                                                                                                                                                 |
| Geometry Outputs                       | ST_AsBinary、ST_AsEWKB、ST_AsEWKT、ST_AsGeoJSON、ST_AsGML、ST_AsHEXEWKB、ST_AsKML、ST_AsLatLonText 、ST_AsSVG、ST_AsText、ST_AsX3D、ST_GeoHash                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| Operators                              | ``` &&、&&&、&<、&<|、&>、<<、<<|、=、>>、@ 、|&> 、|>>、~、~=、<->、<#> ```                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| Spatial Relationships and Measurements | ST_3DClosestPoint、ST_3DDistance、ST_3DDWithin、ST_3DDFullyWithin、ST_3DIntersects、ST_3DLongestLine、ST_3DMaxDistance、ST_3DShortestLine、ST_Area、ST_Azimuth、ST_Centroid、ST_ClosestPoint、ST_Contains、ST_ContainsProperly、ST_Covers、ST_CoveredBy、ST_Crosses、ST_LineCrossingDirection、ST_Disjoint、ST_Distance、ST_HausdorffDistance、ST_MaxDistance、ST_DistanceSphere、ST_DistanceSpheroid、ST_DFullyWithin、ST_DWithin、ST_Equals、ST_HasArc、ST_Intersects、ST_Length、ST_Length2D、ST_3DLength、ST_Length_Spheroid、ST_Length2D_Spheroid、ST_3DLength_Spheroid、ST_LongestLine、ST_OrderingEquals、ST_Overlaps、ST_Perimeter、ST_Perimeter2D、ST_3DPerimeter、ST_PointOnSurface、ST_Project、ST_Relate、ST_RelateMatch、ST_ShortestLine、ST_Touches、ST_Within |
| Geometry Processing                    | ST_Buffer、ST_BuildArea、ST_Collect、ST_ConcaveHull、ST_ConvexHull、ST_CurveToLine、ST_DelaunayTriangles、ST_Difference、ST_Dump、ST_DumpPoints、ST_DumpRings、ST_FlipCoordinates、ST_Intersection、ST_LineToCurve、ST_MakeValid、ST_MemUnion、ST_MinimumBoundingCircle、ST_Polygonize、ST_Node、ST_OffsetCurve、ST_RemoveRepeatedPoints、ST_SharedPaths、ST_Shift_Longitude、ST_Simplify、ST_SimplifyPreserveTopology、ST_Split、ST_SymDifference、ST_Union、ST_UnaryUnion                                                                                                                                                                                                                                                                               |
| Linear Referencing                     | ST_LineInterpolatePoint、ST_LineLocatePoint、ST_LineSubstring、ST_LocateAlong、ST_LocateBetween、ST_LocateBetweenElevations、ST_InterpolatePoint、ST_AddMeasure                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| Miscellaneous Functions                | ST_Accum、Box2D、Box3D、ST_Expand、ST_Extent、ST_3Dextent、Find_SRID、ST_MemSize                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| Exceptional Functions                  | PostGIS_AddBBox、PostGIS_DropBBox、PostGIS_HasBBox                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| Raster Management Functions            | AddRasterConstraints、DropRasterConstraints、AddOverviewConstraints、DropOverviewConstraints、PostGIS_GDAL_Version、PostGIS_Raster_Lib_Build_Date、PostGIS_Raster_Lib_Version、ST_GDALDrivers、UpdateRasterSRID                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| Raster Constructors                    | ST_AddBand、ST_AsRaster、ST_Band、ST_MakeEmptyRaster、ST_Tile、ST_FromGDALRaster                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| Raster Accessors                       | ST_GeoReference、ST_Height、ST_IsEmpty、ST_MetaData、ST_NumBands、ST_PixelHeight、ST_PixelWidth、ST_ScaleX、ST_ScaleY、ST_RasterToWorldCoord、ST_RasterToWorldCoordX、ST_RasterToWorldCoordY、ST_Rotation、ST_SkewX、ST_SkewY、ST_SRID、ST_Summary、ST_UpperLeftX、ST_UpperLeftY、ST_Width、ST_WorldToRasterCoord、ST_WorldToRasterCoordX、ST_WorldToRasterCoordY                                                                                                                                                                                                                                                                                                                                                                                   |
| Raster Band Accessors                  | ST_BandMetaData、ST_BandNoDataValue、ST_BandIsNoData、ST_BandPath、ST_BandPixelType、ST_HasNoBand                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| Raster Pixel Accessors and Setters     | ST_PixelAsPolygon、ST_PixelAsPolygons、ST_PixelAsPoint、ST_PixelAsPoints、ST_PixelAsCentroid、ST_PixelAsCentroids、ST_Value、ST_NearestValue、ST_Neighborhood、ST_SetValue、ST_SetValues、ST_DumpValues、ST_PixelOfValue                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| Raster Editors                         | ST_SetGeoReference、ST_SetRotation、ST_SetScale、ST_SetSkew、ST_SetSRID、ST_SetUpperLeft、ST_Resample、ST_Rescale、ST_Reskew、ST_SnapToGrid、ST_Resize、ST_Transform                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| Raster Band Editors                    | ST_SetBandNoDataValue、ST_SetBandIsNoData                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| Raster Band Statistics and Analytics   | ST_Count、ST_CountAgg、ST_Histogram、ST_Quantile、ST_SummaryStats、ST_SummaryStatsAgg、ST_ValueCount                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| Raster Outputs                         | ST_AsBinary、ST_AsGDALRaster、ST_AsJPEG、ST_AsPNG、ST_AsTIFF                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| Raster Processing                      | ST_Clip、ST_ColorMap、ST_Intersection、ST_MapAlgebra、ST_Reclass、ST_Union、ST_Distinct4ma、ST_InvDistWeight4ma、ST_Max4ma、ST_Mean4ma、ST_Min4ma、ST_MinDist4ma、ST_Range4ma、ST_StdDev4ma、ST_Sum4ma、ST_Aspect、ST_HillShade、ST_Roughness、ST_Slope、ST_TPI、ST_TRI、Box3D、ST_ConvexHull、ST_DumpAsPolygons、ST_Envelope、ST_MinConvexHull、ST_Polygon、ST_Contains、ST_ContainsProperly、ST_Covers、ST_CoveredBy、ST_Disjoint、ST_Intersects、ST_Overlaps、ST_Touches、ST_SameAlignment、ST_NotSameAlignmentReason、ST_Within、ST_DWithin、ST_DFullyWithin                                                                                                                                                                                                     |
| Raster Operators                       | ``` &&、&<、&>、=、@、~=、~ ```                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
   
表2**PostGIS-3.2.2支持的操作符和函数列表** 
| 函数分类                                   | 包含函数                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
|:---|:---|
| Management Functions                   | AddGeometryColumn、DropGeometryColumn、DropGeometryTable、PostGIS_Full_Version、PostGIS_GEOS_Version、PostGIS_Liblwgeom_Version、PostGIS_Lib_Build_Date、PostGIS_Lib_Version、PostGIS_PROJ_Version、PostGIS_Scripts_Build_Date、PostGIS_Scripts_Installed、PostGIS_Version、PostGIS_LibXML_Version、PostGIS_Scripts_Released、Populate_Geometry_Columns 、UpdateGeometrySRID 、PostGIS_Libprotobuf_Version 、PostGIS_Wagyu_Version                                                                                                                                                                                                                                                                                                                                                                                |
| Geometry Constructors                  | ST_BdPolyFromText 、ST_BdMPolyFromText 、ST_Box2dFromGeoHash、ST_GeneratePoints、ST_GeogFromText、ST_GeographyFromText、ST_GeogFromWKB、ST_GeomCollFromText、ST_GeomFromEWKB、ST_GeomFromEWKT、ST_GeometryFromText、ST_GeomFromGeoHash、ST_GeomFromGML、ST_GeomFromGeoJSON、ST_GeomFromKML、ST_GMLToSQL、ST_GeomFromText 、ST_GeomFromWKB、ST_LineFromMultiPoint、ST_LineFromText、ST_LineFromWKB、ST_LinestringFromWKB、ST_MakeBox2D、ST_3DMakeBox、ST_MakeEnvelope、ST_MakePolygon、ST_MakePoint、ST_MakePointM、ST_MLineFromText、ST_MPointFromText、ST_MPolyFromText、ST_Point、ST_Points、ST_PointFromGeoHash、ST_PointFromText、ST_PointFromWKB、ST_Polygon、ST_PolygonFromText、ST_WKBToSQL、ST_WKTToSQL、Geography_Distance_Knn、Geometry_Distance_Cpa、Geometry_Hash、ST_3Dlineinterpolate、ST_AsEncodedPolyline                    |
| Geometry Accessors                     | GeometryType、ST_Boundary、ST_CoordDim、ST_Dimension、ST_EndPoint、ST_Envelope、ST_ExteriorRing、ST_GeometryN、ST_GeometryType、ST_InteriorRingN、ST_IsClosed、ST_IsCollection、ST_IsEmpty、ST_IsPolygonCCW、ST_IsPolygonCW、ST_IsRing、ST_IsSimple、ST_IsValid、ST_IsValidReason、ST_IsValidDetail、ST_M、ST_NDims、ST_NPoints、ST_NRings、ST_NumGeometries、ST_NumInteriorRings、ST_NumInteriorRing、ST_NumPatches、ST_NumPoints、ST_PatchN、ST_PointN、ST_SRID、ST_StartPoint、ST_Summary、ST_X、ST_XMax、ST_XMin、ST_Y、ST_YMax、ST_YMin、ST_Z、ST_ZMax、ST_Zmflag、ST_ZMin、ST_Wrapx、ST_Asmvt                                                                                                                                                                                                                                           |
| Geometry Editors                       | ST_AddPoint、ST_Affine、ST_Force2D、ST_Force3D、ST_Force3DZ、ST_Force3DM、ST_Force4D、ST_ForceCollection、ST_ForcePolygonCCW、ST_ForcePolygonCW、ST_ForceSFS、ST_ForceRHR、ST_LineMerge、ST_CollectionExtract、ST_CollectionHomogenize、ST_Multi、ST_Normalize、ST_RemovePoint、ST_Reverse、ST_Rotate、ST_RotateX、ST_RotateY、ST_RotateZ、ST_Scale、ST_Segmentize、ST_SetPoint、ST_SetSRID、ST_SnapToGrid、ST_Snap、ST_Transform、ST_Translate、ST_TransScale、ST_AsmvtGeom、ST_isvalidTrajectory、ST_linefromencodedpolyline、ST_lineinterpolatepoints、ST_MaximuminScribedCircle、ST_OrientedEnvelope、ST_QuantizeCoordinates、ST_ReducePrecision、ST_Scroll、ST_SetEffectiveArea、ST_simplifyvw、ST_square、ST_squaregrid、ST_Swapordinates、ST_Voronoilines、ST_VoronoiPolygons                                                            |
| Geometry Outputs                       | ST_AsBinary、ST_AsEWKB、ST_AsEWKT、ST_AsGeoJSON、ST_AsGML、ST_AsHEXEWKB、ST_AsKML、ST_AsLatLonText 、ST_AsSVG、ST_AsText、ST_AsTwkb、ST_AsX3D、ST_GeoHash、Json、Jsonb、ST_GeomfromGeojson                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| Operators                              | ``` &&、&&&、&<、&<|、&>、<<、<<|、=、>>、@ 、|&> 、|>>、~、~=、<->、<#>、<->、|=|、<<->> ```                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| Spatial Relationships and Measurements | ST_3DClosestPoint、ST_3DDistance、ST_3DDWithin、ST_3DDFullyWithin、ST_3DIntersects、ST_3DLongestLine、ST_3DMaxDistance、ST_3DShortestLine、ST_Area、ST_Azimuth、ST_Centroid、ST_ClosestPoint、ST_Contains、ST_ContainsProperly、ST_Covers、ST_CoveredBy、ST_Crosses、ST_LineCrossingDirection、ST_Disjoint、ST_Distance、ST_HausdorffDistance、ST_MaxDistance、ST_DistanceSphere、ST_DistanceSpheroid、ST_DFullyWithin、ST_DWithin、ST_Equals、ST_HasArc、ST_Intersects、ST_Length、ST_Length2D、ST_3DLength、ST_LengthSpheroid、ST_Length2DSpheroid、ST_LongestLine、ST_MinimumBoundingRadius、ST_OrderingEquals、ST_Overlaps、ST_Perimeter、ST_Perimeter2D、ST_3DPerimeter、ST_PointOnSurface、ST_Project、ST_Relate、ST_RelateMatch、ST_ShortestLine、ST_Touches、ST_Within、_ST_DistancerectTree、_ST_DistancerectTreeCached、_ST_SorTableHash |
| Geometry Processing                    | ST_Buffer、ST_BuildArea、ST_ClipByBox2D、ST_ClusterDBSCAN、ST_ClusterIntersecting、ST_ClusterKMeans、ST_ClusterWithin、ST_Collect、ST_ConcaveHull、ST_ConvexHull、ST_CurveToLine、ST_DelaunayTriangles、ST_Difference、ST_Dump、ST_DumpPoints、ST_DumpRings、ST_FlipCoordinates、ST_Intersection、ST_LineToCurve、ST_MakeValid、ST_MemUnion、ST_MinimumBoundingCircle、ST_Polygonize、ST_Node、ST_OffsetCurve、ST_RemoveRepeatedPoints、ST_SharedPaths、ST_ShiftLongitude、ST_Simplify、ST_SimplifyPreserveTopology、ST_Split、ST_Subdivide、ST_SymDifference、ST_Union、ST_UnaryUnion、ST_BoundingDiagonal、ST_ChaikinsMoothing、ST_ClosestPointofApproach、ST_CollectionExtract、ST_CPAwithin、ST_DistanceCPA、ST_DumpSegments、ST_EstimatedExtent、ST_Filterbym、ST_SetEffectiveArea、ST_Forcecurve                                        |
| Linear Referencing                     | ST_LineInterpolatePoint、ST_LineLocatePoint、ST_LineSubstring、ST_LocateAlong、ST_LocateBetween、ST_LocateBetweenElevations、ST_InterpolatePoint、ST_AddMeasure                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| Miscellaneous Functions                | Array_Agg、Box2D、Box3D、ST_Expand、ST_Extent、ST_3Dextent、Find_SRID、ST_MemSize                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| Exceptional Functions                  | PostGIS_AddBBox、PostGIS_DropBBox、PostGIS_HasBBox                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
   
#### 空间索引
DWS数据库的PostGIS Extension支持GiST (Generalized Search Tree) 空间索引（分区表除外）。相比于B-tree索引，GiST索引适应于任意类型的非常规数据结构，可有效提高几何和地理数据信息的检索效率。
使用如下命令创建GiST索引：
```
CREATE INDEX indexname ON tablename USING gist ( geometryfield );
```
#### 扩展限制
- 只支持行存表，不支持列存索引。
- 只支持Oracle兼容格式数据库。
- 不支持拓扑对象管理模块Topology。
- 不支持BRIN索引。
- spatial_ref_sys表在扩容期间只支持查询操作。
 
#### 插件升级兼容性
PostGIS-2.4.2版本升级到3.2.2版本时，存在部分函数不兼容或没有完全的前向兼容，导致出现升级前后函数功能表现不一致的情况，所以在PostGIS升级时，需从业务自身角度来评估升级不兼容带来的影响。
不兼容函数列表如下。
| 兼容性差异                                                          | PostGIS-2.4.2                                                                                          | PostGIS-3.2.2                                                                                                                                                                                                            |
|:---|:---|:---|
| 3.2.2新增函数                                                      | 无                                                                                                      | ST_IsPolygonCW(geometry)                                                                                                                                                                                                 |
| 3.2.2新增函数                                                      | 无                                                                                                      | ST_IsPolygonCCW(geometry)                                                                                                                                                                                                |
| 3.2.2新增函数                                                      | 无                                                                                                      | ST_PointInsideCircle(geometry,float8,float8,float8)                                                                                                                                                                      |
| 3.2.2新增函数                                                      | 无                                                                                                      | ST_ForcePolygonCW(geometry)                                                                                                                                                                                              |
| 3.2.2新增函数                                                      | 无                                                                                                      | ST_ForcePolygonCCW(geometry)                                                                                                                                                                                             |
| 3.2.2新增函数                                                      | 无                                                                                                      | ST_Normalize(geom geometry)                                                                                                                                                                                              |
| 3.2.2新增函数                                                      | 无                                                                                                      | ST_AsTWKB(geom geometry, prec int4 default 0, prec_z int4 default 0, prec_m int4 default 0, with_sizes boolean default false, with_boxes boolean default false)                                                          |
| 3.2.2新增函数                                                      | 无                                                                                                      | ST_AsTWKB(geom geometry\[\], ids bigint\[\], prec int4 default 0, prec_z int4 default 0, prec_m int4 default 0, with_sizes boolean default false, with_boxes boolean default false)                                      |
| 3.2.2新增函数                                                      | 无                                                                                                      | ST_MakeLine (geometry\[\])                                                                                                                                                                                               |
| 3.2.2新增函数                                                      | 无                                                                                                      | ST_TileEnvelope(zoom integer, x integer, y integer, bounds geometry DEFAULT 'SRID=3857;LINESTRING(-20037508.342789244 -20037508.342789244, 20037508.342789244 20037508.342789244)'::geometry, margin float8 DEFAULT 0.0) |
| 3.2.2新增函数                                                      | 无                                                                                                      | ST_ClusterIntersecting(geometry\[\])                                                                                                                                                                                     |
| 3.2.2新增函数                                                      | 无                                                                                                      | ST_ClusterWithin(geometry\[\], float8)                                                                                                                                                                                   |
| 3.2.2新增函数                                                      | 无                                                                                                      | ST_ClusterDBSCAN (geometry, eps float8, minpoints int)                                                                                                                                                                   |
| 3.2.2新增函数                                                      | 无                                                                                                      | ST_Scale(geometry,geometry,origin geometry)                                                                                                                                                                              |
| 3.2.2新增函数                                                      | 无                                                                                                      | ST_GeneratePoints(area geometry, npoints integer, seed integer)                                                                                                                                                          |
| 3.2.2新增函数                                                      | 无                                                                                                      | ST_FrechetDistance(geom1 geometry, geom2 geometry, float8 default -1)                                                                                                                                                    |
| 3.2.2新增函数                                                      | 无                                                                                                      | ST_Points(geometry)                                                                                                                                                                                                      |
| 3.2.2新增函数                                                      | 无                                                                                                      | ST_ClipByBox2d(geom geometry, box box2d)                                                                                                                                                                                 |
| 3.2.2新增函数                                                      | 无                                                                                                      | ST_Subdivide(geom geometry, maxvertices integer DEFAULT 256, gridSize float8 DEFAULT -1.0)                                                                                                                               |
| 3.2.2新增函数                                                      | 无                                                                                                      | ST_ClusterIntersecting (geometry)                                                                                                                                                                                        |
| 3.2.2新增函数                                                      | 无                                                                                                      | ST_ClusterWithin (geometry, float8)                                                                                                                                                                                      |
| 3.2.2新增函数                                                      | 无                                                                                                      | ST_ClusterKMeans(geom geometry, k integer, max_radius float8 default null)                                                                                                                                               |
| 3.2.2新增函数                                                      | 无                                                                                                      | ST_AsText(geometry, int4)                                                                                                                                                                                                |
| 3.2.2新增函数                                                      | 无                                                                                                      | ST_AsEWKT(geography, int4)                                                                                                                                                                                               |
| 3.2.2新增函数                                                      | 无                                                                                                      | _ST_CoveredBy(geog1 geography, geog2 geography)                                                                                                                                                                          |
| 3.2.2新增函数                                                      | 无                                                                                                      | ST_Point(float8, float8, srid integer)                                                                                                                                                                                   |
| 3.2.2不再支持  | ST_3DLength_spheroid(geometry, spheroid)                                                               | 无                                                                                                                                                                                                                        |
| 3.2.2不再支持  | ST_length2d_spheroid(geometry, spheroid)                                                               | 无                                                                                                                                                                                                                        |
| 3.2.2不再支持  | ST_locate_between_measures(geometry, float8, float8)                                                   | 无                                                                                                                                                                                                                        |
| 3.2.2不再支持  | ST_locate_along_measure(geometry, float8)                                                              | 无                                                                                                                                                                                                                        |
| 3.2.2不再支持  | ST_Buffer(geometry,float8,text)                                                                        | 无                                                                                                                                                                                                                        |
| 3.2.2不再支持  | ST_GeneratePoints(area geometry, npoints integer)                                                      | 无                                                                                                                                                                                                                        |
| 3.2.2不再支持  | ST_Combine_BBox(box3d,geometry)                                                                        | 无                                                                                                                                                                                                                        |
| 3.2.2不再支持  | ST_Combine_BBox(box2d,geometry)                                                                        | 无                                                                                                                                                                                                                        |
| 3.2.2不再支持  | pgis_abs_in(cstring)                                                                                   | 无                                                                                                                                                                                                                        |
| 3.2.2不再支持  | pgis_abs_out(pgis_abs)                                                                                 | 无                                                                                                                                                                                                                        |
| 3.2.2不再支持  | pgis_abs ( internallength = 16, input = pgis_abs_in, output = pgis_abs_out, alignment = double)        | 无                                                                                                                                                                                                                        |
| 3.2.2不再支持  | ST_MemUnion(geometry)                                                                                  | 无                                                                                                                                                                                                                        |
| 3.2.2不再支持  | pgis_geometry_accum_finalfn(pgis_abs)                                                                  | 无                                                                                                                                                                                                                        |
| 3.2.2不再支持  | ST_MakeLine (geometry)                                                                                 | 无                                                                                                                                                                                                                        |
| 3.2.2不再支持  | ST_Accum (geometry)                                                                                    | 输入单geometry数据，会直接输出该geometry的值，多行geometry数据则会报错不支持。                                                                                                                                                                      |
| 3.2.2不再支持  | _ST_AsKML(int4,geometry, int4, text)                                                                   | 无                                                                                                                                                                                                                        |
| 3.2.2不再支持  | ST_MemUnion(geometry)                                                                                  | 无                                                                                                                                                                                                                        |
| 3.2.2不再支持  | _ST_AsGeoJson(int4, geometry, int4, int4)                                                              | 无                                                                                                                                                                                                                        |
| 3.2.2不再支持  | ST_AsGeoJson(gj_version int4, geom geometry, maxdecimaldigits int4 DEFAULT 15, options int4 DEFAULT 0) | 无                                                                                                                                                                                                                        |
| 3.2.2不再支持  | _ST_DWithin(geography, geography, float8, boolean)                                                     | 无                                                                                                                                                                                                                        |
| 3.2.2不再支持  | ST_point_inside_circle(geometry,float8,float8,float8)                                                  | 无                                                                                                                                                                                                                        |
| 3.2.2不再支持  | ST_CurveToLine(geometry)                                                                               | 无                                                                                                                                                                                                                        |
| 3.2.2不再支持  | ST_Shift_Longitude(geometry)                                                                           | 无，改用ST_ShiftLongitude                                                                                                                                                                                                    |
| 3.2.2不再支持  | ST_find_extent(text,text,text)，ST_find_extent(text,text)                                               | 无，改用ST_FindExtent                                                                                                                                                                                                        |
| 3.2.2不再支持  | ST_mem_size(geometry)                                                                                  | 无，改用ST_MemSize                                                                                                                                                                                                           |
| 3.2.2不再支持  | ST_length_spheroid(geometry, spheroid)                                                                 | 无，改用ST_LengthSpheroid                                                                                                                                                                                                    |
| 3.2.2不再支持  | ST_distance_spheroid(geom1 geometry, geom2 geometry,spheroid)                                          | 无，改用ST_DistanceSpheroid                                                                                                                                                                                                  |
| 3.2.2不再支持  | ST_force_2d(geometry)                                                                                  | 无，改用ST_Force2D                                                                                                                                                                                                           |
| 3.2.2不再支持  | ST_force_3dz(geometry)                                                                                 | 无，改用ST_Force3DZ                                                                                                                                                                                                          |
| 3.2.2不再支持  | ST_force_3d(geometry)                                                                                  | 无，改用ST_Force3D                                                                                                                                                                                                           |
| 3.2.2不再支持  | ST_force_3dm(geometry)                                                                                 | 无，改用ST_Force3DM                                                                                                                                                                                                          |
| 3.2.2不再支持  | ST_force_4d(geometry)                                                                                  | 无，改用ST_Force4D                                                                                                                                                                                                           |
| 3.2.2不再支持  | ST_force_collection(geometry)                                                                          | 无，改用ST_ForceCollection                                                                                                                                                                                                   |
| 3.2.2不再支持  | ST_line_locate_point(geom1 geometry, geom2 geometry)                                                   | 无，改用ST_LineLocatePoint                                                                                                                                                                                                   |
| 3.2.2不再支持  | ST_line_interpolate_point(geometry, float8)                                                            | 无，改用ST_LineInterpolatePoint                                                                                                                                                                                              |
| 3.2.2不再支持  | ST_Buffer(geometry,float8)                                                                             | 无，改用ST_Buffer                                                                                                                                                                                                            |
| 3.2.2参数类型变化                                                    | pgis_geometry_accum_transfn(pgis_abs, geometry)                                                        | pgis_geometry_accum_transfn(internal, geometry)                                                                                                                                                                          |
| 3.2.2参数类型变化                                                    | pgis_geometry_accum_transfn(pgis_abs, geometry, float8)                                                | pgis_geometry_accum_transfn(internal, geometry, float8)                                                                                                                                                                  |
| 3.2.2参数类型变化                                                    | pgis_geometry_accum_transfn(pgis_abs, geometry, float8, int)                                           | pgis_geometry_accum_transfn(internal, geometry, float8, int)                                                                                                                                                             |
| 3.2.2参数类型变化                                                    | pgis_geometry_union_finalfn(pgis_abs)                                                                  | pgis_geometry_union_finalfn(internal)                                                                                                                                                                                    |
| 3.2.2参数类型变化                                                    | pgis_geometry_collect_finalfn(pgis_abs)                                                                | pgis_geometry_collect_finalfn(internal)                                                                                                                                                                                  |
| 3.2.2参数类型变化                                                    | pgis_geometry_polygonize_finalfn(pgis_abs)                                                             | pgis_geometry_polygonize_finalfn(internal)                                                                                                                                                                               |
| 3.2.2参数类型变化                                                    | pgis_geometry_clusterintersecting_finalfn(pgis_abs)                                                    | pgis_geometry_clusterintersecting_finalfn(internal)                                                                                                                                                                      |
| 3.2.2参数类型变化                                                    | ST_Union (geometry)                                                                                    | ST_Union (geometry)                                                                                                                                                                                                      |
| 3.2.2参数类型变化                                                    | ST_Collect (geometry)                                                                                  | ST_Collect (geometry)                                                                                                                                                                                                    |
| 3.2.2参数类型变化                                                    | ST_Buffer(geometry,float8,integer)                                                                     | ST_Buffer(geom geometry, radius float8, quadsegs integer)                                                                                                                                                                |
| 3.2.2接口变更                                                      | ST_AsKML(version int4, geom geometry, maxdecimaldigits int4 DEFAULT 15, nprefix text DEFAULT null)     | ST_AsKML(geom geometry, maxdecimaldigits int4 DEFAULT 15, nprefix TEXT default ' ')                                                                                                                                      |
| 3.2.2接口变更                                                      | ST_AsKML(geom geometry, maxdecimaldigits int4 DEFAULT 15)                                              | ST_AsKML(geom geometry, maxdecimaldigits int4 DEFAULT 15, nprefix TEXT default ' ')                                                                                                                                      |
| 3.2.2接口变更                                                      | ST_AsKML(version int4, geom geometry, maxdecimaldigits int4 DEFAULT 15, nprefix text DEFAULT null)     | ST_AsGML(version int4, geog geography, maxdecimaldigits int4 DEFAULT 15, options int4 DEFAULT 0, nprefix text DEFAULT 'gml', id text DEFAULT '')                                                                         |
| 3.2.2默认参数变化                                                    | ST_SymDifference(geom1 geometry, geom2 geometry)                                                       | ST_SymDifference(geom1 geometry, geom2 geometry, gridSize float8 DEFAULT -1.0)                                                                                                                                           |
| 3.2.2默认参数变化                                                    | ST_UnaryUnion(geometry)                                                                                | ST_UnaryUnion(geometry, gridSize float8 DEFAULT -1.0)                                                                                                                                                                    |
| 3.2.2默认参数变化                                                    | ST_AsGeoJson(geom geometry, maxdecimaldigits int4 DEFAULT 15, options int4 DEFAULT 0)                  | ST_AsGeoJson(geom geometry, maxdecimaldigits int4 DEFAULT 9, options int4 DEFAULT 8)                                                                                                                                     |
| 3.2.2默认参数变化                                                    | ST_Buffer(geometry,float8,cstring)                                                                     | ST_Buffer(geom geometry, radius float8, options text DEFAULT ' ')                                                                                                                                                        |
| 3.2.2默认参数变化                                                    | _ST_DWithin(geography, geography, float8, boolean)                                                     | _ST_DWithin(geog1 geography, geog2 geography, tolerance float8, use_spheroid boolean DEFAULT true)                                                                                                                       |
| 3.2.2默认参数变化                                                    | ST_IsValidDetail(geometry)                                                                             | ST_IsValidDetail(geom geometry, flags int4 DEFAULT 0)                                                                                                                                                                    |
| 3.2.2默认参数变化                                                    | ST_CurveToLine(geom geometry, tol float8, toltype integer, flags integer)                              | ST_CurveToLine(geom geometry, tol float8 DEFAULT 32, toltype integer DEFAULT 0, flags integer DEFAULT 0)                                                                                                                 |
| 3.2.2算子支持hash join和merge join                                  | OPERATOR =                                                                                             | OPERATOR =                                                                                                                                                                                                               |
| 3.2.2功能变更                                                      | ST_ConcaveHull弱校验                                                                                      | ST_ConcaveHull添加强校验，校验更为严格。                                                                                                                                                                                              |
| 3.2.2不定义commutor                                               | ``` OPERATOR &< ,OPERATOR &<|,OPERATOR |&> ```                                                         | ``` OPERATOR &< ,OPERATOR &<|,OPERATOR |&> ```                                                                                                                                                                           |
   
