SqlSpatialServices.GeographyFromGml 方法

定义

重载

GeographyFromGml(String)

创建基于指定地理标记语言 (GML) 值的新 DbGeography 值。

GeographyFromGml(String, Int32)

创建基于指定地理标记语言 (GML) 值和坐标系统标识符 (SRID) 的新 DbGeography 值。

GeographyFromGml(String)

创建基于指定地理标记语言 (GML) 值的新 DbGeography 值。

public override System.Data.Entity.Spatial.DbGeography GeographyFromGml (string geographyMarkup);
override this.GeographyFromGml : string -> System.Data.Entity.Spatial.DbGeography
Public Overrides Function GeographyFromGml (geographyMarkup As String) As DbGeography

参数

geographyMarkup
String

包含地理值的几何图形标记语言 (GML) 表示形式的字符串。

返回

由 GML 值定义的新 DbGeography 值,默认 DbGeography 坐标系统标识符 (SRID) ( DefaultCoordinateSystemId ) 。

适用于

GeographyFromGml(String, Int32)

创建基于指定地理标记语言 (GML) 值和坐标系统标识符 (SRID) 的新 DbGeography 值。

public override System.Data.Entity.Spatial.DbGeography GeographyFromGml (string geographyMarkup, int coordinateSystemId);
override this.GeographyFromGml : string * int -> System.Data.Entity.Spatial.DbGeography
Public Overrides Function GeographyFromGml (geographyMarkup As String, coordinateSystemId As Integer) As DbGeography

参数

geographyMarkup
String

包含地理值的几何图形标记语言 (GML) 表示形式的字符串。

coordinateSystemId
Int32

新建 DbGeography 值应使用的坐标系的标识符。

返回

通过指定坐标系统标识符 (SRID) 由 GML 值定义的新的 DbGeography 值。

适用于