GeometryGetCentroid Method

Computes the centroid of this geometry.

Namespace:  Aspose.Gis.Geometries
Assembly:  Aspose.GIS (in Aspose.GIS.dll) Version: 20.3.0.0 (20.03)
Syntax
public IPoint GetCentroid()

Return Value

Type: IPoint
The centroid of this geometry. If this geometry is empty an empty point returned. The centroid is equal to the centroid of the highest dimension geometries in this geometry (e.g. if both points and lines are contained in the geometry, only lines contribute to centroid).

Implements

IGeometryGetCentroid
See Also