SqlSpatialServices.AsText 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| AsText(DbGeography) |
获取给定 DbGeography 值的已知文本表示形式。 此值应仅包含点的经度和纬度。 |
| AsText(DbGeometry) |
获取给定 DbGeometry 值的已知文本表示形式,包括点的 X 坐标和 Y 坐标。 |
AsText(DbGeography)
获取给定 DbGeography 值的已知文本表示形式。 此值应仅包含点的经度和纬度。
public override string AsText(System.Data.Entity.Spatial.DbGeography geographyValue);
override this.AsText : System.Data.Entity.Spatial.DbGeography -> string
Public Overrides Function AsText (geographyValue As DbGeography) As String
参数
- geographyValue
- DbGeography
应为其生成已知文本的地理值。
返回
包含 geographyValue 的已知文本表示形式的字符串。
适用于
AsText(DbGeometry)
获取给定 DbGeometry 值的已知文本表示形式,包括点的 X 坐标和 Y 坐标。
public override string AsText(System.Data.Entity.Spatial.DbGeometry geometryValue);
override this.AsText : System.Data.Entity.Spatial.DbGeometry -> string
Public Overrides Function AsText (geometryValue As DbGeometry) As String
参数
- geometryValue
- DbGeometry
应为其生成已知文本的几何图形值。
返回
一个字符串,包含 geometryValue 的已知文本表示形式。