SqlSpatialServices.GetCentroid(DbGeometry) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
傳回DbGeometry 值,此值代表指定 DbGeometry 值的中心點,如果該值不代表曲面,則可能為 null。
public override System.Data.Entity.Spatial.DbGeometry GetCentroid(System.Data.Entity.Spatial.DbGeometry geometryValue);
override this.GetCentroid : System.Data.Entity.Spatial.DbGeometry -> System.Data.Entity.Spatial.DbGeometry
Public Overrides Function GetCentroid (geometryValue As DbGeometry) As DbGeometry
參數
- geometryValue
- DbGeometry
幾何值,不需要代表表面。
傳回
如果 geometryValue 代表表面,則為 geometryValue 的距心;否則為 null。