DbGeometry.FromGml Method

Definition

Overloads

FromGml(String)

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

FromGml(String, Int32)

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

FromGml(String)

Creates a new DbGeometry 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.DbGeometry FromGml (string geometryMarkup);
static member FromGml : string -> System.Data.Entity.Spatial.DbGeometry
Public Shared Function FromGml (geometryMarkup As String) As DbGeometry

Parameters

geometryMarkup
String

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

Returns

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

Attributes

Exceptions

geometryMarkup

Applies to

FromGml(String, Int32)

Creates a new DbGeometry 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.DbGeometry FromGml (string geometryMarkup, int coordinateSystemId);
static member FromGml : string * int -> System.Data.Entity.Spatial.DbGeometry
Public Shared Function FromGml (geometryMarkup As String, coordinateSystemId As Integer) As DbGeometry

Parameters

geometryMarkup
String

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

coordinateSystemId
Int32

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

Returns

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

Attributes

Exceptions

geometryMarkup

coordinateSystemId

Applies to