Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
返回元素顺序相反的几何。
geometry-expression.ST_Reverse()
ST_Geometry 返回元素顺序相反的几何。
结果的空间参照系标识符与 geometry-expression 的空间参照系标识符相同。
返回元素顺序相反的几何。对于曲线,返回折点顺序相反的曲线。对于集合,返回子几何顺序相反的集合。
缺省情况下,如果几何的原始格式可用,ST_Reverse 将使用该格式。否则使用内部格式。有关内部和原始格式的详细信息,请参见STORAGE FORMAT 子句,CREATE SPATIAL REFERENCE SYSTEM 语句。
SQL/MM (ISO/IEC 13249-3: 2006) 服务商扩充
以下示例返回结果 [LineString (3 4, 1 2)]。显示如何通过 ST_Reverse 使线串中的点的顺序发生颠倒。
LineString (3 4, 1 2)
SELECT NEW ST_LineString( NEW ST_Point(1,2), NEW ST_Point(3,4) ).ST_Reverse()