Expand Minimize
This topic has not yet been rated - Rate this topic

SqlGeometry.STCentroid Method

Returns the geometric center of a SqlGeometry instance consisting of one or more polygons.

Namespace:  Microsoft.SqlServer.Types
Assembly:  Microsoft.SqlServer.Types (in Microsoft.SqlServer.Types.dll)
'Declaration
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)> _
PublicFunctionSTCentroidAsSqlGeometry
'Usage
DiminstanceAsSqlGeometryDimreturnValueAsSqlGeometryreturnValue = instance.STCentroid()

Return Value

Type: Microsoft.SqlServer.Types.SqlGeometry
A SqlGeometry object that represents the geometric center of the calling SqlGeometry.

STCentroid returns null if the SqlGeometry instance is not a Polygon or MultiPolygon type.

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.