SqlSpatialServices.PointAt Method

 

Returns a point element of the given value.

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

NameDescription
System_CAPS_pubmethodPointAt(DbGeography, Int32)

Returns a point element of the given DbGeography value, if it represents a linestring or linear ring.(Overrides DbSpatialServices.PointAt(DbGeography, Int32).)

System_CAPS_pubmethodPointAt(DbGeometry, Int32)

Returns a point element of the given DbGeometry value, if it represents a linestring or linear ring.(Overrides DbSpatialServices.PointAt(DbGeometry, Int32).)


SqlSpatialServices.PointAt Method (DbGeography, Int32)

Returns a point element of the given DbGeography value, if it represents a linestring or linear ring.

public override DbGeography PointAt(
	DbGeography geographyValue,
	int index
)

Parameters

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

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

index
Type: System.Int32

The position within the geography value from which the element should be taken.

Return Value

Type: System.Data.Entity.Spatial.DbGeography

The point in geographyValue at position index, if it represents a linestring or linear ring; otherwise, null.


SqlSpatialServices.PointAt Method (DbGeometry, Int32)

Returns a point element of the given DbGeometry value, if it represents a linestring or linear ring.

public override DbGeometry PointAt(
	DbGeometry geometryValue,
	int index
)

Parameters

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

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

index
Type: System.Int32

The position within the geometry value from which the element should be taken.

Return Value

Type: System.Data.Entity.Spatial.DbGeometry

The point in geometryValue at position index, if it represents a linestring or linear ring; otherwise, null.