语言

SqlSpatialServices.PointAt 方法

定义

重载

名称 说明
PointAt(DbGeography, Int32)

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

PointAt(DbGeometry, Int32)

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

PointAt(DbGeography, Int32)

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

public override System.Data.Entity.Spatial.DbGeography PointAt(System.Data.Entity.Spatial.DbGeography geographyValue, int index);
override this.PointAt : System.Data.Entity.Spatial.DbGeography * int -> System.Data.Entity.Spatial.DbGeography
Public Overrides Function PointAt (geographyValue As DbGeography, index As Integer) As DbGeography

参数

geographyValue
DbGeography

地理值,它不需要表示线字符串或线性环。

index
Int32

应从中获取元素的地理值中的位置。

返回

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

适用于

PointAt(DbGeometry, Int32)

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

public override System.Data.Entity.Spatial.DbGeometry PointAt(System.Data.Entity.Spatial.DbGeometry geometryValue, int index);
override this.PointAt : System.Data.Entity.Spatial.DbGeometry * int -> System.Data.Entity.Spatial.DbGeometry
Public Overrides Function PointAt (geometryValue As DbGeometry, index As Integer) As DbGeometry

参数

geometryValue
DbGeometry

几何图形值,它不需要表示线字符串或线性环。

index
Int32

应从中获取元素的几何图形值中的位置。

返回

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

适用于