Share via


DbSpatialServices.AsText Method

Definition

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 string AsText (System.Data.Entity.Spatial.DbGeography geographyValue);
abstract member AsText : System.Data.Entity.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 is null.

geographyValue is not compatible with this spatial services implementation.

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 string AsText (System.Data.Entity.Spatial.DbGeometry geometryValue);
abstract member AsText : System.Data.Entity.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 is null.

geometryValue is not compatible with this spatial services implementation.

Applies to