DbGeography.FromGml 方法

定义

重载

FromGml(String)

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

FromGml(String, Int32)

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

FromGml(String)

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

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId="Gml")]
public static System.Data.Entity.Spatial.DbGeography FromGml (string geographyMarkup);
static member FromGml : string -> System.Data.Entity.Spatial.DbGeography
Public Shared Function FromGml (geographyMarkup As String) As DbGeography

参数

geographyMarkup
String

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

返回

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

属性

适用于

FromGml(String, Int32)

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

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId="Gml")]
public static System.Data.Entity.Spatial.DbGeography FromGml (string geographyMarkup, int coordinateSystemId);
static member FromGml : string * int -> System.Data.Entity.Spatial.DbGeography
Public Shared Function FromGml (geographyMarkup As String, coordinateSystemId As Integer) As DbGeography

参数

geographyMarkup
String

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

coordinateSystemId
Int32

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

返回

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

属性

适用于