Share via


DbGeography.FromGml Method

Definition

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.

[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

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 ).

Attributes

Applies to

FromGml(String, Int32)

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

[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

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.

Attributes

Applies to