DbGeography.FromGml 方法

定义

创建一个新的 DbGeography 值,Creates a new.DbGeography 该值基于指定地理标记语言 (GML) 值。value based on the specified Geography Markup Language (GML) value.

重载

FromGml(String)

创建基于指定地理标记语言 (GML) 值的新 DbGeography 值。Creates a new DbGeography value based on the specified Geography Markup Language (GML) value.

FromGml(String, Int32)

创建基于指定地理标记语言 (GML) 值和坐标系统标识符 (SRID) 的新 DbGeography 值。Creates a new DbGeography value based on the specified Geography Markup Language (GML) value and coordinate system identifier (SRID).

FromGml(String)

创建基于指定地理标记语言 (GML) 值的新 DbGeography 值。Creates a new DbGeography value based on the specified Geography Markup Language (GML) value.

public:
 static System::Data::Spatial::DbGeography ^ FromGml(System::String ^ geographyMarkup);
public static System.Data.Spatial.DbGeography FromGml (string geographyMarkup);
static member FromGml : string -> System.Data.Spatial.DbGeography
Public Shared Function FromGml (geographyMarkup As String) As DbGeography

参数

geographyMarkup
String

包含地理值的地理标记语言 (GML) 表示形式的字符串。A string that contains a Geography Markup Language (GML) representation of the geography value.

返回

DbGeography

通过默认的地理坐标系统标识符 (SRID),由 GML 值定义的新的 DbGeography 值 (DefaultCoordinateSystemId)。A new DbGeography value as defined by the GML value with the default geography coordinate system identifier (SRID) (DefaultCoordinateSystemId).

例外

geographyMarkup

适用于

FromGml(String, Int32)

创建基于指定地理标记语言 (GML) 值和坐标系统标识符 (SRID) 的新 DbGeography 值。Creates a new DbGeography value based on the specified Geography Markup Language (GML) value and coordinate system identifier (SRID).

public:
 static System::Data::Spatial::DbGeography ^ FromGml(System::String ^ geographyMarkup, int coordinateSystemId);
public static System.Data.Spatial.DbGeography FromGml (string geographyMarkup, int coordinateSystemId);
static member FromGml : string * int -> System.Data.Spatial.DbGeography
Public Shared Function FromGml (geographyMarkup As String, coordinateSystemId As Integer) As DbGeography

参数

geographyMarkup
String

包含地理值的地理标记语言 (GML) 表示形式的字符串。A string that contains a Geography Markup Language (GML) representation of the geography value.

coordinateSystemId
Int32

新 DbGeography 值应使用的坐标系的标识符。The identifier of the coordinate system that the new DbGeography value should use.

返回

DbGeography

通过指定坐标系统标识符由 GML 值定义的新的 DbGeography 值。A new DbGeography value as defined by the GML value with the specified coordinate system identifier.

例外

geographyMarkup

coordinateSystemId

适用于