DbSpatialServices.GeometryFromGml 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_pubmethodGeometryFromGml(String)

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

System_CAPS_pubmethodGeometryFromGml(String, Int32)

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


DbSpatialServices.GeometryFromGml Method (String)

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

[SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", 
	MessageId = "Gml")]
public abstract DbGeometry GeometryFromGml(
	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 DbGeometry coordinate system identifier (SRID) ( DefaultCoordinateSystemId ).


DbSpatialServices.GeometryFromGml 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 abstract DbGeometry GeometryFromGml(
	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 (SRID).