ESRI.ArcGIS.ADF.Web
GetCenterPoint Method
See Also  Send Feedback
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.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2011 All Rights Reserved.