SqlSpatialServices.GeometryFromGml Method
Creates a new DbGeometry value based on the specified Geography Markup Language (GML) value.
Assembly: EntityFramework.SqlServer (in EntityFramework.SqlServer.dll)
Name | Description | |
---|---|---|
![]() | GeometryFromGml(String) | Creates a new DbGeometry value based on the specified Geography Markup Language (GML) value.(Overrides DbSpatialServices.GeometryFromGml(String).) |
![]() | GeometryFromGml(String, Int32) | Creates a new DbGeometry value based on the specified Geography Markup Language (GML) value and coordinate system identifier (SRID).(Overrides DbSpatialServices.GeometryFromGml(String, Int32).) |
SqlSpatialServices.GeometryFromGml Method (String)
Creates a new DbGeometry value based on the specified Geography Markup Language (GML) value.
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 ).
SqlSpatialServices.GeometryFromGml Method (String, Int32)
Creates a new DbGeometry value based on the specified Geography Markup Language (GML) value and coordinate system identifier (SRID).
public override 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).