Click to Rate and Give Feedback
MSDN
MSDN Library
SQL Server
SQL Server 2008
Database Engine
Technical Reference
 STIsClosed (geography Data Type)
Community Content
In this section
Statistics Annotations (0)
Collapse All/Expand All Collapse All
SQL Server 2008 Books Online (October 2009)
STIsClosed (geography Data Type)

Returns 1 if the start and end points of the given geography instance are the same. Returns 1 for geography collection types if each contained geography instance is closed. Returns 0 if the instance is not closed.

.STIsClosed ( )

SQL Server return type: bit

CLR return type: SqlBoolean

This method returns 0 if any figures of a geography instance are points, or if the instance is empty.

All Polygon instances are considered closed.

The following example creates a Polygon instance and uses STIsClosed() to test if the Polygon is closed.

DECLARE @g geography;
SET @g = geography::STGeomFromText('POLYGON((-122.358 47.653, -122.348 47.649, -122.348 47.658, -122.358 47.658, -122.358 47.653))', 4326);
SELECT @g.STIsClosed();
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker