DbSpatialServices.PointAt 方法

定义

重载

PointAt(DbGeography, Int32)

如果其表示行字符串或线性环,则返回给定 DbGeography 值的点元素。

PointAt(DbGeometry, Int32)

如果其表示行字符串或线性环,则返回给定 DbGeometry 值的点元素。

PointAt(DbGeography, Int32)

如果其表示行字符串或线性环,则返回给定 DbGeography 值的点元素。

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

参数

geographyValue
DbGeography

不需要表示一个行字符串或线性环的地理值。

index
Int32

在地理值中元素应被采用的的位置。

返回

geographyValue 中位置索引处的点(如果它表示线字符串或线性环);否则为 null。

例外

geographyValue 为 null。

geographyValue 与此空间服务实现不兼容。

适用于

PointAt(DbGeometry, Int32)

如果其表示行字符串或线性环,则返回给定 DbGeometry 值的点元素。

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

参数

geometryValue
DbGeometry

几何值,它不需要表示 linestring 或线性环。

index
Int32

在几何值中元素应被采用的位置。

返回

geometryValue 中位置索引处的点(如果它表示线条字符串或线性环);否则为 null。

例外

geometryValue 为 null。

geometryValue 与此空间服务实现不兼容。

适用于