DbSpatialServices.GetCentroid(DbGeometry) Method

Definition

Returns a DbGeometry value that represents the centroid of the given DbGeometry value, which may be null if the value does not represent a surface.

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification="Naming convention prescribed by OGC specification", MessageId="Centroid")]
public abstract System.Data.Entity.Spatial.DbGeometry GetCentroid (System.Data.Entity.Spatial.DbGeometry geometryValue);
abstract member GetCentroid : System.Data.Entity.Spatial.DbGeometry -> System.Data.Entity.Spatial.DbGeometry
Public MustOverride Function GetCentroid (geometryValue As DbGeometry) As DbGeometry

Parameters

geometryValue
DbGeometry

The geometry value, which need not represent a surface.

Returns

The centroid of geometryValue, if it represents a surface; otherwise null.

Attributes

Exceptions

geometryValue is null.

geometryValue is not compatible with this spatial services implementation.

Applies to