DbSpatialServices.GeometryFromGml Method
Creates a new DbGeometry value based on the specified Geography Markup Language (GML) value.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() | GeometryFromGml(String) | Creates a new DbGeometry value based on the specified Geography Markup Language (GML) value. |
![]() | GeometryFromGml(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.DbGeometryA 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.DbGeometryA new DbGeometry value as defined by the GML value with the specified coordinate system identifier (SRID).