Redigera

Dela via


DbSpatialServices.PointAt Method

Definition

Returns a point element of the given value.

Overloads

PointAt(DbGeography, Int32)

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

PointAt(DbGeometry, Int32)

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

PointAt(DbGeography, Int32)

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

public:
 abstract System::Data::Spatial::DbGeography ^ PointAt(System::Data::Spatial::DbGeography ^ geographyValue, int index);
public abstract System.Data.Spatial.DbGeography PointAt (System.Data.Spatial.DbGeography geographyValue, int index);
abstract member PointAt : System.Data.Spatial.DbGeography * int -> System.Data.Spatial.DbGeography
Public MustOverride Function PointAt (geographyValue As DbGeography, index As Integer) As DbGeography

Parameters

geographyValue
DbGeography

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

index
Int32

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

Returns

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

Exceptions

geographyValue

geographyValue

Applies to

PointAt(DbGeometry, Int32)

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

public:
 abstract System::Data::Spatial::DbGeometry ^ PointAt(System::Data::Spatial::DbGeometry ^ geometryValue, int index);
public abstract System.Data.Spatial.DbGeometry PointAt (System.Data.Spatial.DbGeometry geometryValue, int index);
abstract member PointAt : System.Data.Spatial.DbGeometry * int -> System.Data.Spatial.DbGeometry
Public MustOverride Function PointAt (geometryValue As DbGeometry, index As Integer) As DbGeometry

Parameters

geometryValue
DbGeometry

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

index
Int32

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

Returns

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

Exceptions

geometryValue

geometryValue

Applies to