Edit

Share via


DbSpatialServices.GeographyFromGml Method

Definition

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

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:
 abstract System::Data::Spatial::DbGeography ^ GeographyFromGml(System::String ^ geographyMarkup);
public abstract System.Data.Spatial.DbGeography GeographyFromGml (string geographyMarkup);
abstract member GeographyFromGml : string -> System.Data.Spatial.DbGeography
Public MustOverride 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).

Exceptions

geographyMarkup

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:
 abstract System::Data::Spatial::DbGeography ^ GeographyFromGml(System::String ^ geographyMarkup, int coordinateSystemId);
public abstract System.Data.Spatial.DbGeography GeographyFromGml (string geographyMarkup, int coordinateSystemId);
abstract member GeographyFromGml : string * int -> System.Data.Spatial.DbGeography
Public MustOverride 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).

Exceptions

geographyMarkup

coordinateSystemId

Applies to