/// <summary> /// Computes the centroid point of a geometry. /// </summary> /// <param name="geom">The geometry to use</param> /// <returns> /// The centroid point, or null if the geometry is empty /// </returns> public static Coordinate GetCentroid(IGeometry geom) { Centroid cent = new Centroid(geom); return(cent.GetCentroid()); }
/// <summary> /// Computes the centroid point of a geometry. /// </summary> /// <param name="geom">The geometry to use</param> /// <returns> /// The centroid point, or null if the geometry is empty /// </returns> public static Coordinate GetCentroid(IGeometry geom) { Centroid cent = new Centroid(geom); return cent.GetCentroid(); }