DbSpatialServices.GetPointOnSurface Method (DbGeometry)

 

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

Namespace:   System.Data.Entity.Spatial
Assembly:  EntityFramework (in EntityFramework.dll)

public abstract DbGeometry GetPointOnSurface(
	DbGeometry geometryValue
)

Parameters

geometryValue
Type: System.Data.Entity.Spatial.DbGeometry

The geometry value, which need not represent a surface.

Return Value

Type: System.Data.Entity.Spatial.DbGeometry

A DbGeometry value that represents a point on the surface of the given DbGeometry value.

Exception Condition
ArgumentNullException

geometryValue is null.

ArgumentException

geometryValue is not compatible with this spatial services implementation.