Edit

Share via


DbSpatialServices.GeometryFromGml Method

Definition

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

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.

public:
 abstract System::Data::Spatial::DbGeometry ^ GeometryFromGml(System::String ^ geometryMarkup);
public abstract System.Data.Spatial.DbGeometry GeometryFromGml (string geometryMarkup);
abstract member GeometryFromGml : string -> System.Data.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).

Exceptions

geometryMarkup

Applies to

GeometryFromGml(String, Int32)

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

public:
 abstract System::Data::Spatial::DbGeometry ^ GeometryFromGml(System::String ^ geometryMarkup, int coordinateSystemId);
public abstract System.Data.Spatial.DbGeometry GeometryFromGml (string geometryMarkup, int coordinateSystemId);
abstract member GeometryFromGml : string * int -> System.Data.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).

Exceptions

geometryMarkup

coordinateSystemId

Applies to