ReorientObject(geography 数据类型)

适用于:SQL ServerAzure SQL 数据库Azure SQL 托管实例Microsoft Fabric 预览版中的 SQL 数据库

返回 geography 实例以及互换的内部区域和外部区域

这种 geography 数据类型方法支持大于半球的 FullGlobe 实例或空间实例 。

Syntax

.ReorientObject (geography)  

Arguments

geography
对其调用 的另一个 geography 实例ReorientObject()

Return Value

SQL Server 返回类型:geography

CLR 返回类型:SqlGeography

Remarks

此方法更改 GeometryCollection 中所有 Polygons 的环方向,但不删除或更改给定集合中的任何 Points或 LineStrings

如果将 GeometryCollection 传递给此方法,则会重新调整集合中的每个实例,但不会重新调整整个集合。

Examples

DECLARE @R GEOGRAPHY = GEOGRAPHY::Parse('Polygon((-10 -10, -10 10, 10 10, 10 -10, -10 -10))');  
SELECT @R.ReorientObject().STAsText();  
--Result: POLYGON ((10 10, -10 10, -10 -10, 10 -10, 10 10))  

See Also

地理实例上的扩展方法