Spatial Relationships(空间关系)
Topological Relationships(拓扑)
ST_3DIntersects—如果几何在3D中“空间相交”,则返回TRUE-仅适用于点,线串,多边形,多面体表面(区域)。
ST_3DIntersects— Returns TRUE if the Geometries "spatially intersect" in 3D - only for points, linestrings, polygons, polyhedral surface (area).
ST_Contains—当且仅当B的点不位于A的外部且B的内部的至少一个点位于A的内部时,才返回true。
ST_Contains— Returns true if and only if no points of B lie in the exterior of A, and at least one point of the interior of B lies in the interior of A.
ST_ContainsProperly—如果B与A的内部而不是边界(或外部)相交,则返回true。A本身不包含自身,但是包含自身。
Returns true if B intersects the interior of A but not the boundary (or exterior). A does not contain properly itself, but does contain itself.
ST_Covers—如果几何B中的任何点都不在几何A之外,则返回1(TRUE)
ST_Covers— Returns 1 (TRUE) if no point in Geometry B is outside Geometry A
ST_CoveredBy—如果几何/地理A中的任何点都不在几何/地理B之外,则返回1(TRUE)
ST_CoveredBy— Returns 1 (TRUE) if no point in Geometry/Geography A is outside Geometry/Geography B
ST_Crosses— TRUE 如果提供的几何具有一些但不是全部内部公共点,则返回。接受两个几何对象,TRUE如果它们的交点“空间相交”,则返回它们,也就是说,几何具有一些内部点,但并非所有内部点都相同。
ST_Crosses— Returns TRUE if the supplied geometries have some, but not all, interior points in common.
ST_LineCrossingDirection-给定2个线串,返回-3到3之间的数字,表示哪种交叉行为。0是不相交。仅支持LINESTRING
ST_LineCrossingDirection— Given 2 linestrings, returns a number between -3 and 3 denoting what kind of crossing behavior. 0 is no crossing.
ST_Disjoint—如果几何不“空间相交”-如果它们不共享任何空间,则返回TRUE。
ST_Disjoint— Returns TRUE if the Geometries do not "spatially intersect" - if they do not share any space together.
ST_Equals—如果给定的几何表示相同的几何,则返回true。方向性被忽略。
ST_Equals— Returns true if the given geometries represent the same geometry. Directionality is ignored.
ST_Intersects—如果“几何体/地理”在2D中空间相交”(共享空间的任何部分),则返回FALSE;否则,则返回FALSE(它们不相交)。对于地理公差为0.00001米(因此,任何靠近的点都视为相交)
ST_Intersects— Returns TRUE if the Geometries/Geography "spatially intersect in 2D" - (share any portion of space) and FALSE if they don't (they are Disjoint). For geography tolerance is 0.00001 meters (so any points that close are considered to intersect)
ST_OrderingEquals—如果给定的几何图形表示相同的几何图形,并且点的方向相同,则返回true。
ST_OrderingEquals— Returns true if the given geometries represent the same geometry and points are in the same directional order.
ST_Overlaps—如果几何共享空间,具有相同的维度但彼此之间不完全包含,则返回TRUE。
ST_Overlaps— Returns TRUE if the Geometries share space, are of the same dimension, but are not completely contained by each other.
ST_PointInsideCircle—是由center_x,center_y,半径定义的圆内的点几何
ST_PointInsideCircle— Is the point geometry inside the circle defined by center_x, center_y, radius
ST_Relate—如果此Geometry在空间上与anotherGeometry相关,则通过测试由交集MatrixPattern中的值指定的两个几何的内部,边界和外部之间的交集,返回true。如果没有传入交集矩阵模式,则返回与2个几何相关的最大交集矩阵模式。
ST_Relate— Returns true if this Geometry is spatially related to anotherGeometry, by testing for intersections between the Interior, Boundary and Exterior of the two geometries as specified by the values in the intersectionMatrixPattern. If no intersectionMatrixPattern is passed in, then returns the maximum intersectionMatrixPattern that relates the 2 geometries.
ST_RelateMatch—如果交集MattrixPattern1暗含交集MatrixPattern2,则返回true
ST_RelateMatch— Returns true if intersectionMattrixPattern1 implies intersectionMatrixPattern2
ST_Touches—返回TRUE 几何是否至少有一个公共点,但它们的内部不相交。不适用于点/点对
ST_Touches— Returns TRUE if the geometries have at least one point in common, but their interiors do not intersect.
ST_Within—如果几何A完全在几何B内,则返回true。假设如果ST_Within(A,B)为true并且ST_Within(B,A)为true,则认为这两个几何在空间上相等
ST_Within— Returns true if the geometry A is completely inside geometry B
Distance Relationships(距离)
ST_3DDWithin—对于3d(z)几何类型,如果两个几何3d距离在单位数量之内,则返回true。
ST_3DDWithin— For 3d (z) geometry type Returns true if two geometries 3d distance is within number of units.
ST_3DDFullyWithin—如果所有3D几何形状彼此都在指定的距离之内,则返回true。
ST_3DDFullyWithin— Returns true if all of the 3D geometries are within the specified distance of one another.
ST_DFullyWithin—如果所有几何都在彼此的指定距离内,则返回true
ST_DFullyWithin— Returns true if all of the geometries are within the specified distance of one another
ST_DWithin—如果几何在指定距离内,则返回true。对于几何单位,以空间参考为单位;对于地理单位,以米为单位,并且默认将测量值设置为use_spheroid = true(围绕椭球体进行度量),以便更快地进行检查,将use_spheroid = false沿球进行度量。
ST_DWithin— Returns true if the geometries are within the specified distance of one another. For geometry units are in those of spatial reference and for geography units are in meters and measurement is defaulted to use_spheroid=true (measure around spheroid), for faster check, use_spheroid=false to measure along sphere
Measurement Functions(测量)
ST_Area—返回多边形几何的面积。
ST_Area— Returns the area of a polygonal geometry.
ST_Azimuth—返回北点方位角,以弧度为单位,从点A的垂直方向到点B的角度以弧度为单位。
ST_Azimuth— Returns the north-based azimuth as the angle in radians measured clockwise from the vertical on pointA to pointB.
ST_Angle—返回3个点之间或2个向量之间的角度(4个点或2条线)。
ST_Angle— Returns the angle between 3 points, or between 2 vectors (4 points or 2 lines).
ST_ClosestPoint—返回g1上最接近g2的2D点。这是最短线的第一点。
ST_ClosestPoint— Returns the 2D point on g1 that is closest to g2. This is the first point of the shortest line.
ST_3DClosestPoint—返回g1上最接近g2的3D点。这是3D最短线的第一点。
ST_3DClosestPoint— Returns the 3D point on g1 that is closest to g2. This is the first point of the 3D shortest line.
ST_Distance—返回两个几何或地理值之间的距离。
ST_Distance— Returns the distance between two geometry or geography values.
ST_3DDistance—以投影单位返回两个几何之间的3D笛卡尔最小距离(基于空间参考)。
ST_3DDistance— Returns the 3D cartesian minimum distance (based on spatial ref) between two geometries in projected units.
ST_DistanceSphere—使用球形地球模型返回两个lon / lat几何之间的最小距离(以米为单位)。
ST_DistanceSphere— Returns minimum distance in meters between two lon/lat geometries using a spherical earth model.
ST_DistanceSpheroid—使用球状地球模型返回两个lon / lat几何之间的最小距离。
ST_DistanceSpheroid— Returns the minimum distance between two lon/lat geometries using a spheroidal earth model.
ST_FrechetDistance—返回两个几何之间的Fréchet距离。两个几何之间相似度或不相似度的度量
ST_FrechetDistance— Returns the Fréchet distance between two geometries.
ST_HausdorffDistance—返回两个几何之间的Hausdorff距离。两个几何之间相似度或不相似度的度量
ST_HausdorffDistance— Returns the Hausdorff distance between two geometries.
ST_Length—返回线性几何的2D长度。
ST_Length— Returns the 2D length of a linear geometry.
ST_Length2D—返回线性几何的2D长度。别名ST_Length
ST_Length2D— Returns the 2D length of a linear geometry. Alias for ST_Length
ST_3DLength—返回线性几何的3D长度。
ST_3DLength— Returns the 3D length of a linear geometry.
ST_LengthSpheroid—返回球体上lon / lat几何的2D或3D长度/周长。
ST_LengthSpheroid— Returns the 2D or 3D length/perimeter of a lon/lat geometry on a spheroid.
ST_LongestLine—返回两个几何之间的2D最长线。
ST_LongestLine— Returns the 2D longest line between two geometries.
ST_3DLongestLine—返回两个几何之间的3D最长线
ST_3DLongestLine— Returns the 3D longest line between two geometries
ST_MaxDistance—以投影单位返回两个几何之间的最大二维距离。
ST_MaxDistance— Returns the 2D largest distance between two geometries in projected units.
ST_3DMaxDistance—以投影单位返回两个几何之间的3D笛卡尔最大距离(基于空间参考)。
ST_3DMaxDistance— Returns the 3D cartesian maximum distance (based on spatial ref) between two geometries in projected units.
ST_MinimumClearance—返回几何图形的最小间隙,度量几何图形的鲁棒性。
ST_MinimumClearance— Returns the minimum clearance of a geometry, a measure of a geometry's robustness.
ST_MinimumClearanceLine—返回跨越几何最小间隙的两点LineString。
ST_MinimumClearanceLine— Returns the two-point LineString spanning a geometry's minimum clearance.
ST_Perimeter—返回多边形几何或地理边界的长度(周长)。
ST_Perimeter— Returns the length of the boundary of a polygonal geometry or geography.
ST_Perimeter2D—返回多边形几何的2D周长。ST_Perimeter的别名。
ST_Perimeter2D— Returns the 2D perimeter of a polygonal geometry. Alias for ST_Perimeter.
ST_3DPerimeter—返回多边形几何的3D周长。
ST_3DPerimeter— Returns the 3D perimeter of a polygonal geometry.
ST_Project—返回从起点投影一个距离和方位角(方位角)的点。返回使用给定的距离和方位角(方位角)从沿测地线的起点投影的点。这被称为直接测地问题
ST_Project— Returns a point projected from a start point by a distance and bearing (azimuth).
ST_ShortestLine—返回两个几何之间的2D最短线
ST_ShortestLine— Returns the 2D shortest line between two geometries
ST_3DShortestLine—返回两个几何之间的3D最短线
ST_3DShortestLine— Returns the 3D shortest line between two geometries
TIPS
1.计算距离,面积和角度的测量值。及计算由测量确定的几何值
2.Fréchet距离是曲线之间相似度的量度,其中考虑了沿曲线的点的位置和顺序。因此,它通常比Hausdorff距离更好
3.方位角(也称为航向或方位角)以弧度表示。从真北(方位角零)顺时针测量。East是方位角π/ 2(90度);南方是方位角π(180度); 西方是方位角3π/ 2(270度)。支持负方位角值和大于2π(360度)的值。
Geometry Processing(几何处理)
ST_Buffer—(T)返回一个几何图形,该几何图形覆盖距输入几何图形给定距离内的所有点。
ST_Buffer— (T) Returns a geometry covering all points within a given distance from the input geometry.
ST_BuildArea—创建由给定几何图形的组成线段形成的面几何图形,返回类型可以是Polygon或MultiPolygon,具体取决于输入
ST_BuildArea— Creates an areal geometry formed by the constituent linework of given geometry
ST_Centroid—返回几何的几何中心。计算几何的几何中心,或等效地将几何的质心计算为POINT。对于[ MULTI] POINT,将其计算为输入坐标的算术平均值。对于[ MULTI] LINESTRING,将其计算为每个线段的加权长度。对于[ MULTI] POLYGON,“权重”是根据面积来考虑的。
ST_Centroid— Computes the geometric center of a geometry, or equivalently, the center of mass of the geometry as a POINT. For [MULTI]POINTs, this is computed as the arithmetic mean of the input coordinates. For [MULTI]LINESTRINGs, this is computed as the weighted length of each line segment. For [MULTI]POLYGONs, "weight" is thought in terms of area. If an empty geometry is supplied, an empty GEOMETRYCOLLECTION is returned. If NULL is supplied, NULL is returned. If CIRCULARSTRING or COMPOUNDCURVE are supplied, they are converted to linestring wtih CurveToLine first, then same than for LINESTRING
ST_ClipByBox2D—返回属于矩形的几何图形的一部分。
ST_ClipByBox2D— Returns the portion of a geometry falling within a rectangle.
ST_ConcaveHull—几何形状的凹壳表示可能的凹形几何形状,该几何形状将集合中的所有几何形状都包含在内。您可以将其视为收缩包装。
ST_ConcaveHull— The concave hull of a geometry represents a possibly concave geometry that encloses all geometries within the set. You can think of it as shrink wrapping.
ST_ConvexHull—计算几何的凸包。
ST_ConvexHull— Computes the convex hull of a geometry.
ST_CurveToLine—将圆形/曲线多面体/多表面转换为线性/多面体/多面体
ST_CurveToLine— Converts a CIRCULARSTRING/CURVEPOLYGON/MULTISURFACE to a LINESTRING/POLYGON/MULTIPOLYGON
ST_DelaunayTriangles—返回围绕给定输入点的Delaunay三角剖分。
ST_DelaunayTriangles— Return a Delaunay triangulation around the given input points.
ST_Difference—返回一个几何,该几何表示不与几何B相交的几何A的那一部分。
ST_Difference— Returns a geometry that represents that part of geometry A that does not intersect with geometry B.
ST_FlipCoordinates—返回给定几何图形的X和Y轴已翻转的版本。对于已建立纬度/经度特征并需要对其进行修复的人员而言非常有用。(经纬度翻转)
ST_FlipCoordinates— Returns a version of the given geometry with X and Y axis flipped. Useful for people who have built latitude/longitude features and need to fix them.
ST_GeneratePoints—将多边形或多多边形转换为由原始区域内的随机位置点组成的多点。
ST_GeneratePoints— Converts a polygon or multi-polygon into a multi-point composed of randomly location points within the original areas.
ST_GeometricMedian —返回MultiPoint的几何中间值。
ST_GeometricMedian — Returns the geometric median of a MultiPoint.
ST_Intersection—(T)返回表示geomA和geomB共享部分的几何。
ST_Intersection— (T) Returns a geometry that represents the shared portion of geomA and geomB.
ST_LineToCurve—将LINESTRING / POLYGON转换为圆形,CURVEPOLYGON
ST_LineToCurve— Converts a LINESTRING/POLYGON to a CIRCULARSTRING, CURVEPOLYGON
ST_MakeValid—尝试使无效的几何图形有效而不丢失顶点。
ST_MakeValid— Attempts to make an invalid geometry valid without losing vertices.
ST_MemUnion—与ST_Union相同,仅对内存友好(使用更少的内存和更多的处理器时间)。
ST_MemUnion— Same as ST_Union, only memory-friendly (uses less memory and more processor time).
ST_MinimumBoundingCircle—返回可以完全包含几何图形的最小圆形多边形。默认情况下,每四分之一圈使用48个细分。
ST_MinimumBoundingCircle— Returns the smallest circle polygon that can fully contain a geometry. Default uses 48 segments per quarter circle.
ST_MinimumBoundingRadius—返回可以完全包含几何图形的最小圆的圆心和半径。
ST_MinimumBoundingRadius— Returns the center point and radius of the smallest circle that can fully contain a geometry.
ST_OrientedEnvelope—返回包含几何的最小旋转矩形。
ST_OrientedEnvelope— Returns a minimum rotated rectangle enclosing a geometry.
ST_Polygonize—聚合。创建一个GeometryCollection,其中包含由一组几何的构成线形成的可能的多边形。
ST_Polygonize— Aggregate. Creates a GeometryCollection containing possible polygons formed from the constituent linework of a set of geometries.
ST_Node—节点一组线串。使用最少数量的节点将一组线串完全节点化,同时保留所有输入节点
ST_Node— Node a set of linestrings.
ST_OffsetCurve—返回距输入线给定距离和边距的偏移线。对于计算围绕中心线的平行线很有用
ST_OffsetCurve— Return an offset line at a given distance and side from an input line. Useful for computing parallel lines about a center line
ST_PointOnSurface—返回POINT保证位于表面上的位置。
ST_PointOnSurface— Returns a POINT guaranteed to lie on the surface.
ST_RemoveRepeatedPoints—返回给定几何的版本,其中删除了重复的点。
ST_RemoveRepeatedPoints— Returns a version of the given geometry with duplicated points removed.
ST_SharedPaths—返回包含两个输入线串/多线串共享的路径的集合。
ST_SharedPaths— Returns a collection containing paths shared by the two input linestrings/multilinestrings.
ST_ShiftLongitude—在-180..180和0..360范围之间切换几何坐标。
ST_ShiftLongitude— Toggle geometry coordinates between -180..180 and 0..360 ranges.
ST_WrapX—将几何图形环绕X值。
ST_WrapX— Wrap a geometry around an X value.
ST_Simplify—使用Douglas-Peucker算法返回给定几何的“简化”版本。
ST_Simplify— Returns a "simplified" version of the given geometry using the Douglas-Peucker algorithm.
ST_SimplifyPreserveTopology—使用Douglas-Peucker算法返回给定几何的“简化”版本。将避免创建无效的派生几何(尤其是多边形)。
ST_SimplifyPreserveTopology— Returns a "simplified" version of the given geometry using the Douglas-Peucker algorithm. Will avoid creating derived geometries (polygons in particular) that are invalid.
ST_SimplifyVW—使用Visvalingam-Whyatt算法返回给定几何的“简化”版本
ST_SimplifyVW— Returns a "simplified" version of the given geometry using the Visvalingam-Whyatt algorithm
ST_ChaikinSmoothing—使用Chaikin算法返回给定几何的“平滑”版本
ST_ChaikinSmoothing— Returns a "smoothed" version of the given geometry using the Chaikin algorithm
ST_FilterByM—根据顶点的m值过滤顶点(此功能主要旨在与ST_SetEffectiveArea结合使用。ST_EffectiveArea以其m值设置顶点的有效面积。借助ST_FilterByM,仅通过过滤即可获得几何的简化版本,而无需任何计算)
ST_FilterByM— Filters vertex points based on their m-value
ST_SetEffectiveArea—设置每个顶点的有效面积,将值存储在M坐标中。然后可以通过对坐标进行过滤来生成简化的几何图形。
ST_SetEffectiveArea— Sets the effective area for each vertex, storing the value in the M ordinate. A simplified geometry can then be generated by filtering on the M ordinate.
ST_Split—返回通过拆分几何图形得到的几何图形的集合。
ST_Split— Returns a collection of geometries resulting by splitting a geometry.
ST_SymDifference—返回表示A和B不相交的部分的几何。之所以称为对称差异,是因为ST_SymDifference(A,B)= ST_SymDifference(B,A)。
ST_SymDifference— Returns a geometry that represents the portions of A and B that do not intersect. It is called a symmetric difference because ST_SymDifference(A,B) = ST_SymDifference(B,A).
ST_Subdivide—返回一组几何,其中该组中的任何几何都没有超过指定数目的顶点。
ST_Subdivide— Returns a set of geometry where no geometry in the set has more than the specified number of vertices.
ST_Union—返回表示几何图形的点集并集的几何图形。
ST_Union— Returns a geometry that represents the point set union of the Geometries.
ST_UnaryUnion—与ST_Union类似,但是在几何图形组件级别工作。
ST_UnaryUnion— Like ST_Union, but working at the geometry component level.
ST_VoronoiLines—返回从几何顶点构造的Voronoi图的像元之间的边界。
ST_VoronoiLines— Returns the boundaries between the cells of the Voronoi diagram constructed from the vertices of a geometry.
ST_VoronoiPolygons—返回从几何顶点构造的Voronoi图的像元。
ST_VoronoiPolygons— Returns the cells of the Voronoi diagram constructed from the vertices of a geometry.
Affine Transformations(仿射变换)
ST_Affine—将3D仿射变换应用于几何图形。
ST_Affine— Apply a 3D affine transformation to a geometry.
ST_Rotate—围绕原点旋转几何。
ST_Rotate— Rotates a geometry about an origin point.
ST_RotateX—绕X轴旋转几何。
ST_RotateX— Rotates a geometry about the X axis.
ST_RotateY—围绕Y轴旋转几何。
ST_RotateY— Rotates a geometry about the Y axis.
ST_RotateZ—绕Z轴旋转几何。
ST_RotateZ— Rotates a geometry about the Z axis.
ST_Scale—按给定因子缩放几何。
ST_Scale— Scales a geometry by given factors.
ST_Translate—按给定的偏移量转换几何图形。
ST_Translate— Translates a geometry by given offsets.
ST_TransScale—按给定的偏移量和因子平移和缩放几何。
ST_TransScale— Translates and scales a geometry by given offsets and factors.
TIPS
1.更改几何的位置和形状
Clustering Functions(聚类)
ST_ClusterDBSCAN—窗口函数,使用DBSCAN算法为每个输入几何返回聚类ID。
ST_ClusterDBSCAN— Window function that returns a cluster id for each input geometry using the DBSCAN algorithm.
ST_ClusterIntersecting—聚合函数,用于将输入几何形状聚类为连接的集合。
ST_ClusterIntersecting— Aggregate function that clusters the input geometries into connected sets.
ST_ClusterKMeans—窗口函数,使用K-means算法为每个输入几何返回聚类ID。
ST_ClusterKMeans— Window function that returns a cluster id for each input geometry using the K-means algorithm.
ST_ClusterWithin—聚合函数,用于按分隔距离对输入几何图形进行聚类。
ST_ClusterWithin— Aggregate function that clusters the input geometries by separation distance.
Bounding Box Functions(边界框的操作)
Box2D—返回表示几何2D范围的BOX2D。
Box2D— Returns a BOX2D representing the 2D extent of the geometry.
Box3D—返回代表几何图形3D范围的BOX3D。
Box3D— Returns a BOX3D representing the 3D extent of the geometry.
ST_EstimatedExtent—返回空间表的“估计”范围。
ST_EstimatedExtent— Return the 'estimated' extent of a spatial table.
ST_Expand—返回从另一个边界框或几何图形扩展的边界框。指定一个应在各个方向上扩展该框的距离,或者指定每个方向的扩展距离
ST_Expand— Returns a bounding box expanded from another bounding box or a geometry.
ST_Extent—一个聚合函数,返回一个包围一组几何形状的边界框
ST_Extent— an aggregate function that returns the bounding box that bounds rows of geometries.
ST_3DExtent—返回3D边界框的聚合函数,该边界框限制几何图形的行。
ST_3DExtent— an aggregate function that returns the 3D bounding box that bounds rows of geometries.
ST_MakeBox2D—创建由两个2D点几何定义的BOX2D。
ST_MakeBox2D— Creates a BOX2D defined by two 2D point geometries.
ST_3DMakeBox—创建由两个3D点几何定义的BOX3D。
ST_3DMakeBox— Creates a BOX3D defined by two 3D point geometries.
ST_XMax—返回2D或3D边界框或几何的X最大值。
ST_XMax— Returns the X maxima of a 2D or 3D bounding box or a geometry.
ST_XMin—返回2D或3D边界框或几何的X最小值。
ST_XMin— Returns the X minima of a 2D or 3D bounding box or a geometry.
ST_YMax—返回2D或3D边界框或几何的Y最大值。
ST_YMax— Returns the Y maxima of a 2D or 3D bounding box or a geometry.
ST_YMin—返回2D或3D边界框或几何的Y最小值。
ST_YMin— Returns the Y minima of a 2D or 3D bounding box or a geometry.
ST_ZMax—返回2D或3D边界框或几何的Z最大值。
ST_ZMax— Returns the Z maxima of a 2D or 3D bounding box or a geometry.
ST_ZMin—返回2D或3D边界框或几何的Z最小值。
ST_ZMin— Returns the Z minima of a 2D or 3D bounding box or a geometry.
Linear Referencing(线性参考)
ST_LineInterpolatePoint—返回沿直线插入的点。第二个参数是一个介于0和1之间的float8,代表必须定位的线串总长度的一部分。
ST_LineInterpolatePoint— Returns a point interpolated along a line. Second argument is a float8 between 0 and 1 representing fraction of total length of linestring the point has to be located.
ST_3DLineInterpolatePoint—返回沿3D线插入的点。第二个参数是一个介于0和1之间的float8,代表必须定位的线串总长度的一部分。
ST_3DLineInterpolatePoint— Returns a point interpolated along a line in 3D. Second argument is a float8 between 0 and 1 representing fraction of total length of linestring the point has to be located.
ST_LineInterpolatePoints—返回沿线插补的一个或多个点。
ST_LineInterpolatePoints— Returns one or more points interpolated along a line.
ST_LineLocatePoint—返回0到1之间的浮点数,表示LineString上与给定Point点最近的点的位置,以总2d线长的一部分表示。
ST_LineLocatePoint— Returns a float between 0 and 1 representing the location of the closest point on LineString to the given Point, as a fraction of total 2d line length.
ST_LineSubstring—返回一个线串,该线串是输入的子串,从总2d长度的给定分数开始和结束。第二个和第三个参数是介于0和1之间的float8值。
ST_LineSubstring— Return a linestring being a substring of the input one starting and ending at the given fractions of total 2d length. Second and third arguments are float8 values between 0 and 1.
ST_LocateAlong—返回带有与指定度量匹配的元素的派生几何集合值。不支持多边形元素。
ST_LocateAlong— Return a derived geometry collection value with elements that match the specified measure. Polygonal elements are not supported.
ST_LocateBetween—返回派生的几何集合值,其元素与指定范围的测量值(包括端值)进行匹配。
ST_LocateBetween— Return a derived geometry collection value with elements that match the specified range of measures inclusively.
ST_LocateBetweenElevations—返回派生的几何(集合)值,其元素与指定的高程范围相交。
ST_LocateBetweenElevations— Return a derived geometry (collection) value with elements that intersect the specified range of elevations inclusively.
ST_InterpolatePoint—返回在靠近提供的点的点处的几何的度量尺寸的值。
ST_InterpolatePoint— Return the value of the measure dimension of a geometry at the point closed to the provided point.
ST_AddMeasure—返回带有在起点和终点之间线性插值的测量元素的派生几何。
ST_AddMeasure— Return a derived geometry with measure elements linearly interpolated between the start and end points.
Trajectory Functions
ST_IsValidTrajectory—返回true几何是否为有效轨迹。
ST_IsValidTrajectory— Returns true if the geometry is a valid trajectory.
ST_ClosestPointOfApproach—返回沿两个轨迹插补的点最近的度量。
ST_ClosestPointOfApproach— Returns the measure at which points interpolated along two trajectories are closest.
ST_DistanceCPA—返回两个轨迹的最接近点之间的距离。
ST_DistanceCPA— Returns the distance between the closest point of approach of two trajectories.
ST_CPAWithin—返回true两个轨迹的最接近点是否在指定距离内。
ST_CPAWithin— Returns true if the closest point of approach of two trajectories is within the specified distance.
TIPS
1. 支持使用轨迹。轨迹是在每个坐标上带有度量(M值)的线性几何。测量值必须沿线增加。时空数据可以通过使用相对时间(例如纪元)作为度量值来建模。
SFCGAL Functions
postgis_sfcgal_version—返回正在使用的SFCGAL的版本
postgis_sfcgal_version— Returns the version of SFCGAL in use
ST_Extrude—将曲面拉伸到相关体积
ST_Extrude— Extrude a surface to a related volume
ST_StraightSkeleton—根据几何计算直线骨架
ST_StraightSkeleton— Compute a straight skeleton from a geometry
ST_ApproximateMedialAxis—计算平面几何的近似中间轴。
ST_ApproximateMedialAxis— Compute the approximate medial axis of an areal geometry.
ST_IsPlanar—检查曲面是否为平面
ST_IsPlanar— Check if a surface is or not planar
ST_Orientation—确定表面方向
ST_Orientation— Determine surface orientation
ST_ForceLHR—强制LHR方向
ST_ForceLHR— Force LHR orientation
ST_MinkowskiSum—执行Minkowski和
ST_MinkowskiSum— Performs Minkowski sum
ST_ConstrainedDelaunayTriangles—返回围绕给定输入几何形状的约束Delaunay三角剖分。
ST_ConstrainedDelaunayTriangles— Return a constrained Delaunay triangulation around the given input geometry.
ST_3DIntersection—执行3D相交
ST_3DIntersection— Perform 3D intersection
ST_3DDifference—执行3D差异
ST_3DDifference— Perform 3D difference
ST_3DUnion—执行3D合并
ST_3DUnion— Perform 3D union
ST_3DArea—计算3D表面几何形状的面积。实体将返回0。
ST_3DArea— Computes area of 3D surface geometries. Will return 0 for solids.
ST_Tesselate—执行多边形或多面曲面的表面镶嵌处理,并以TIN或TINS集合的形式返回
ST_3DArea— Computes area of 3D surface geometries. Will return 0 for solids.
ST_Volume—计算3D实体的体积。如果应用于表面(甚至闭合)几何,则将返回0。
ST_Volume— Computes the volume of a 3D solid. If applied to surface (even closed) geometries will return 0.
ST_MakeSolid—将几何体转换为实体。不执行检查。为了获得有效的实体,输入几何必须为封闭的多面曲面或封闭的TIN。
ST_MakeSolid— Cast the geometry into a solid. No check is performed. To obtain a valid solid, the input geometry must be a closed Polyhedral Surface or a closed TIN.
ST_IsSolid—测试几何是否为实体。不执行有效性检查。
ST_IsSolid— Test if the geometry is a solid. No validity check is performed.
TIPS
1. 围绕CGAL的C ++包装库,可提供高级2D和3D空间功能。为了鲁棒性,几何坐标具有精确的有理数表示
2. 可在SFCGAL主页(http://www.sfcgal.org)上找到该库的安装说明.要启用功能,请使用create extension postgis_sfcgal