DbGeometry.FromGml Method

 

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

Namespace:   System.Data.Entity.Spatial
Assembly:  EntityFramework (in EntityFramework.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticFromGml(String)

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

System_CAPS_pubmethodSystem_CAPS_staticFromGml(String, Int32)

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


DbGeometry.FromGml Method (String)

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

[SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", 
	MessageId = "Gml")]
public static DbGeometry FromGml(
	string geometryMarkup
)

Parameters

geometryMarkup
Type: System.String

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

Return Value

Type: System.Data.Entity.Spatial.DbGeometry

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

Exception Condition
ArgumentNullException

geometryMarkup is null.


DbGeometry.FromGml Method (String, Int32)

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

[SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", 
	MessageId = "Gml")]
public static DbGeometry FromGml(
	string geometryMarkup,
	int coordinateSystemId
)

Parameters

geometryMarkup
Type: System.String

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

coordinateSystemId
Type: System.Int32

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

Return Value

Type: System.Data.Entity.Spatial.DbGeometry

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

Exception Condition
ArgumentNullException

geometryMarkup is null.

ArgumentException

coordinateSystemId is invalid.