DbSpatialServices.AsGml Method
Generates the Geography Markup Language (GML) representation of a specified value.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() | AsGml(DbGeography) | Generates the Geography Markup Language (GML) representation of this DbGeography value. |
![]() | AsGml(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.StringA 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.StringA 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. |