Lingua

DbSpatialServices.GetCentroid(DbGeometry) Metodo

Definizione

Restituisce un valore DbGeometry che rappresenta il centro del valore DbGeometry specificato, che può essere null se il valore non rappresenta una superficie.

[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

Parametri

geometryValue
DbGeometry

Il valore geometrico, che non deve rappresentare una superficie.

Valori restituiti

Centroide di geometryValue, se rappresenta una superficie; in caso contrario, null.

Attributi

Eccezioni

geometryValue è null.

geometryValue non è compatibile con questa implementazione dei servizi spaziali.

Si applica a