DbSpatialServices.GeometryFromGml 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
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). |
GeometryFromGml(String)
Creates a new DbGeometry value based on the specified Geography Markup Language (GML) value.
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId="Gml")]
public abstract System.Data.Entity.Spatial.DbGeometry GeometryFromGml (string geometryMarkup);
abstract member GeometryFromGml : string -> System.Data.Entity.Spatial.DbGeometry
Public MustOverride Function GeometryFromGml (geometryMarkup As String) As DbGeometry
Parameters
- geometryMarkup
- String
A string that contains a Geography Markup Language (GML) representation of the geometry value.
Returns
A new DbGeometry value as defined by the GML value with the default DbGeometry coordinate system identifier (SRID) ( DefaultCoordinateSystemId ).
- Attributes
Applies to
GeometryFromGml(String, Int32)
Creates a new DbGeometry value based on the specified Geography Markup Language (GML) value and coordinate system identifier (SRID).
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId="Gml")]
public abstract System.Data.Entity.Spatial.DbGeometry GeometryFromGml (string geometryMarkup, int coordinateSystemId);
abstract member GeometryFromGml : string * int -> System.Data.Entity.Spatial.DbGeometry
Public MustOverride Function GeometryFromGml (geometryMarkup As String, coordinateSystemId As Integer) As DbGeometry
Parameters
- geometryMarkup
- String
A string that contains a Geography Markup Language (GML) representation of the geometry value.
- coordinateSystemId
- Int32
The identifier of the coordinate system that the new DbGeometry value should use.
Returns
A new DbGeometry value as defined by the GML value with the specified coordinate system identifier (SRID).
- Attributes
Applies to
Entity Framework