Esempio n. 1
0
        /// <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());
        }
Esempio n. 2
0
 /// <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();
 }