Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

STBoundary (geometry Data Type)

Returns the boundary of a geometry instance.


.STBoundary ()

SQL Server return type: geometry

CLR return type: SqlGeometry

The following example uses STBoundary() to create a LineStringgeometry instance. It then returns the boundary of the LineString.

DECLARE @g geometry;
SET @g = geometry::STGeomFromText('LINESTRING(0 0, 2 2, 0 2, 2 0)', 0);
SELECT @g.STBoundary().ToString();
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.