Edit

Share via


DbSpatialServices.AsText Method

Definition

Gets the well-known text representation of the given value.

Overloads

AsText(DbGeography)

Gets the well-known text representation of the given DbGeography value. This value should include only the Longitude and Latitude of points.

AsText(DbGeometry)

Gets the well-known text representation of the given DbGeometry value, including only X and Y coordinates for points.

AsText(DbGeography)

Gets the well-known text representation of the given DbGeography value. This value should include only the Longitude and Latitude of points.

public:
 abstract System::String ^ AsText(System::Data::Spatial::DbGeography ^ geographyValue);
public abstract string AsText (System.Data.Spatial.DbGeography geographyValue);
abstract member AsText : System.Data.Spatial.DbGeography -> string
Public MustOverride Function AsText (geographyValue As DbGeography) As String

Parameters

geographyValue
DbGeography

The geography value for which the well-known text should be generated.

Returns

A string containing the well-known text representation of geographyValue.

Exceptions

geographyValue

geographyValue

Applies to

AsText(DbGeometry)

Gets the well-known text representation of the given DbGeometry value, including only X and Y coordinates for points.

public:
 abstract System::String ^ AsText(System::Data::Spatial::DbGeometry ^ geometryValue);
public abstract string AsText (System.Data.Spatial.DbGeometry geometryValue);
abstract member AsText : System.Data.Spatial.DbGeometry -> string
Public MustOverride Function AsText (geometryValue As DbGeometry) As String

Parameters

geometryValue
DbGeometry

The geometry value for which the well-known text should be generated.

Returns

A string containing the well-known text representation of geometryValue.

Exceptions

geometryValue

geometryValue

Applies to