DbSpatialServices.GetPointCount Method

 

Returns the number of points in the given value.

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

NameDescription
System_CAPS_pubmethodGetPointCount(DbGeography)

Returns the number of points in the given DbGeography value, if it represents a linestring or linear ring.

System_CAPS_pubmethodGetPointCount(DbGeometry)

Returns the number of points in the given DbGeometry value, if it represents a linestring or linear ring.


DbSpatialServices.GetPointCount Method (DbGeography)

Returns the number of points in the given DbGeography value, if it represents a linestring or linear ring.

public abstract Nullable<int> GetPointCount(
	DbGeography geographyValue
)

Parameters

geographyValue
Type: System.Data.Entity.Spatial.DbGeography

The geography value, which need not represent a linestring or linear ring.

Return Value

Type: System.Nullable<Int32>

The number of points in the given DbGeography value.

Exception Condition
ArgumentNullException

geographyValue is null.

ArgumentException

geographyValue is not compatible with this spatial services implementation.


DbSpatialServices.GetPointCount Method (DbGeometry)

Returns the number of points in the given DbGeometry value, if it represents a linestring or linear ring.

public abstract Nullable<int> GetPointCount(
	DbGeometry geometryValue
)

Parameters

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

The geometry value, which need not represent a linestring or linear ring.

Return Value

Type: System.Nullable<Int32>

The number of points in the given DbGeometry value.

Exception Condition
ArgumentNullException

geometryValue is null.

ArgumentException

geometryValue is not compatible with this spatial services implementation.