DbSpatialServices.GeographyFromGml 方法
定义
创建基于指定地理标记语言 (GML) 值的新 DbGeography 值。Creates a new DbGeography value based on the specified Geography Markup Language (GML) value.
重载
| GeographyFromGml(String) |
创建基于指定地理标记语言 (GML) 值的新 DbGeography 值。Creates a new DbGeography value based on the specified Geography Markup Language (GML) value. |
| GeographyFromGml(String, Int32) |
创建基于指定地理标记语言 (GML) 值和坐标系统标识符 (SRID) 的新 DbGeography 值。Creates a new DbGeography value based on the specified Geography Markup Language (GML) value and coordinate system identifier (SRID). |
GeographyFromGml(String)
创建基于指定地理标记语言 (GML) 值的新 DbGeography 值。Creates a new DbGeography value based on the specified Geography Markup Language (GML) value.
public:
abstract System::Data::Spatial::DbGeography ^ GeographyFromGml(System::String ^ geographyMarkup);
public abstract System.Data.Spatial.DbGeography GeographyFromGml (string geographyMarkup);
abstract member GeographyFromGml : string -> System.Data.Spatial.DbGeography
Public MustOverride Function GeographyFromGml (geographyMarkup As String) As DbGeography
参数
- geographyMarkup
- String
包含地理值的几何图形标记语言 (GML) 表示形式的字符串。A string that contains a Geometry 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 DbGeography coordinate system identifier (SRID) (DefaultCoordinateSystemId).
例外
geographyMarkup
适用于
GeographyFromGml(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:
abstract System::Data::Spatial::DbGeography ^ GeographyFromGml(System::String ^ geographyMarkup, int coordinateSystemId);
public abstract System.Data.Spatial.DbGeography GeographyFromGml (string geographyMarkup, int coordinateSystemId);
abstract member GeographyFromGml : string * int -> System.Data.Spatial.DbGeography
Public MustOverride Function GeographyFromGml (geographyMarkup As String, coordinateSystemId As Integer) As DbGeography
参数
- geographyMarkup
- String
包含地理值的几何图形标记语言 (GML) 表示形式的字符串。A string that contains a Geometry Markup Language (GML) representation of the geography value.
- coordinateSystemId
- Int32
新建 DbGeography 值应使用的坐标系的标识符。The identifier of the coordinate system that the new DbGeography value should use.
返回
通过指定坐标系统标识符 (SRID) 由 GML 值定义的新的 DbGeography 值。A new DbGeography value as defined by the GML value with the specified coordinate system identifier (SRID).
例外
geographyMarkup
coordinateSystemId