DbSpatialServices.AsGml Method

 

Generates the Geography Markup Language (GML) representation of a specified value.

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

NameDescription
System_CAPS_pubmethodAsGml(DbGeography)

Generates the Geography Markup Language (GML) representation of this DbGeography value.

System_CAPS_pubmethodAsGml(DbGeometry)

Generates the Geography Markup Language (GML) representation of this DbGeometry value.


DbSpatialServices.AsGml Method (DbGeography)

Generates the Geography Markup Language (GML) representation of this DbGeography value.

[SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", 
	MessageId = "Gml")]
public abstract string AsGml(
	DbGeography geographyValue
)

Parameters

geographyValue
Type: System.Data.Entity.Spatial.DbGeography

The geography value for which the GML should be generated.

Return Value

Type: System.String

A string containing the GML representation of this DbGeography value.

Exception Condition
ArgumentNullException

geographyValue is null.

ArgumentException

geographyValue is not compatible with this spatial services implementation.


DbSpatialServices.AsGml Method (DbGeometry)

Generates the Geography Markup Language (GML) representation of this DbGeometry value.

[SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", 
	MessageId = "Gml")]
public abstract string AsGml(
	DbGeometry geometryValue
)

Parameters

geometryValue
Type: System.Data.Entity.Spatial.DbGeometry

The geometry value for which the GML should be generated.

Return Value

Type: System.String

A string containing the GML representation of this DbGeometry value.

Exception Condition
ArgumentNullException

geometryValue is null.

ArgumentException

geometryValue is not compatible with this spatial services implementation.