ESRI.ArcGIS.ADF.Web
GetCenterPoint Method
See Also 
ESRI.ArcGIS.ADF.Web.Geometry Namespace > Geometry Class : GetCenterPoint Method




geometry
Geometry feature.
Returns the center point of the minimum enclosing envelope of the geometry object.

Syntax

Visual Basic (Declaration) 
Public Shared Function GetCenterPoint( _
   ByVal geometry As Geometry _
) As Point
Visual Basic (Usage)Copy Code
Dim geometry As Geometry
Dim value As Point
 
value = Geometry.GetCenterPoint(geometry)
C# 
public static Point GetCenterPoint( 
   Geometry geometry
)

Parameters

geometry
Geometry feature.

Return Value

Point at the center of the minimum enclosing envelope of the feature.

Remarks

This method finds the minimum enclosing envelope, then returns the center point of this envelope. It does not calculate the centroid (center of population, or center of gravity) of irregularly shaped geometry.

See Also

© 2010 All Rights Reserved.