SqlSpatialServices.GeographyFromGml Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GeographyFromGml(String) |
Creates a new DbGeography value based on the specified Geography Markup Language (GML) value. |
GeographyFromGml(String, Int32) |
Creates a new DbGeography value based on the specified Geography Markup Language (GML) value and coordinate system identifier (SRID). |
GeographyFromGml(String)
Creates a new DbGeography value based on the specified Geography Markup Language (GML) value.
public override System.Data.Entity.Spatial.DbGeography GeographyFromGml (string geographyMarkup);
override this.GeographyFromGml : string -> System.Data.Entity.Spatial.DbGeography
Public Overrides Function GeographyFromGml (geographyMarkup As String) As DbGeography
Parameters
- geographyMarkup
- String
A string that contains a Geometry Markup Language (GML) representation of the geography value.
Returns
A new DbGeography value as defined by the GML value with the default DbGeography coordinate system identifier (SRID) ( DefaultCoordinateSystemId ).
Applies to
GeographyFromGml(String, Int32)
Creates a new DbGeography value based on the specified Geography Markup Language (GML) value and coordinate system identifier (SRID).
public override System.Data.Entity.Spatial.DbGeography GeographyFromGml (string geographyMarkup, int coordinateSystemId);
override this.GeographyFromGml : string * int -> System.Data.Entity.Spatial.DbGeography
Public Overrides Function GeographyFromGml (geographyMarkup As String, coordinateSystemId As Integer) As DbGeography
Parameters
- geographyMarkup
- String
A string that contains a Geometry Markup Language (GML) representation of the geography value.
- coordinateSystemId
- Int32
The identifier of the coordinate system that the new DbGeography value should use.
Returns
A new DbGeography value as defined by the GML value with the specified coordinate system identifier (SRID).
Applies to
Entity Framework