Edit

Share via


DbGeography.FromGml Method

Definition

Creates a new.DbGeography value based on the specified Geography Markup Language (GML) value.

Overloads

FromGml(String)

Creates a new DbGeography value based on the specified Geography Markup Language (GML) value.

FromGml(String, Int32)

Creates a new DbGeography value based on the specified Geography Markup Language (GML) value and coordinate system identifier (SRID).

FromGml(String)

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

Parameters

geographyMarkup
String

A string that contains a Geography Markup Language (GML) representation of the geography value.

Returns

A new DbGeography value as defined by the GML value with the default geography coordinate system identifier (SRID) (DefaultCoordinateSystemId).

Exceptions

geographyMarkup

Applies to

FromGml(String, Int32)

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

Parameters

geographyMarkup
String

A string that contains a Geography Markup Language (GML) representation of the geography value.

coordinateSystemId
Int32

The identifier of the coordinate system that the new DbGeography value should use.

Returns

A new DbGeography value as defined by the GML value with the specified coordinate system identifier.

Exceptions

geographyMarkup

coordinateSystemId

Applies to