Redigeeri

Jagamisviis:


DbGeometry.FromGml Method

Definition

Creates a new DbGeometry value based on the specified Geography Markup Language (GML) value.

Overloads

FromGml(String, Int32)

Creates a new DbGeometry value based on the specified Geography Markup Language (GML) value and coordinate system identifier (SRID).

FromGml(String)

Creates a new DbGeometry value based on the specified Geography Markup Language (GML) value.

FromGml(String, Int32)

Creates a new DbGeometry value based on the specified Geography Markup Language (GML) value and coordinate system identifier (SRID).

public:
 static System::Data::Spatial::DbGeometry ^ FromGml(System::String ^ geometryMarkup, int coordinateSystemId);
public static System.Data.Spatial.DbGeometry FromGml (string geometryMarkup, int coordinateSystemId);
static member FromGml : string * int -> System.Data.Spatial.DbGeometry
Public Shared Function FromGml (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.

Exceptions

geometryMarkup

coordinateSystemId

Applies to

FromGml(String)

Creates a new DbGeometry value based on the specified Geography Markup Language (GML) value.

public:
 static System::Data::Spatial::DbGeometry ^ FromGml(System::String ^ geometryMarkup);
public static System.Data.Spatial.DbGeometry FromGml (string geometryMarkup);
static member FromGml : string -> System.Data.Spatial.DbGeometry
Public Shared Function FromGml (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 geometry coordinate system identifier (SRID) (DefaultCoordinateSystemId).

Exceptions

geometryMarkup

Applies to