Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Returns a geography instance with interchanged interior regions and exterior regions.
This geography data type method supports FullGlobe instances or spatial instances that are larger than a hemisphere.
Syntax
.ReorientObject (geography)
Arguments
- geography
Is another geography instance on which ReorientObject() is invoked.
Return Value
SQL Server return type: geography
CLR return type: SqlGeography
Remarks
This method changes the ring orientation of all Polygons in a GeometryCollection but does not remove or change any Points or Linestrings in the given collection.
If a GeometryCollection is passed to this method, each instance in the collection is reoriented, but the collection as a whole is not reoriented.
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))