SqlSpatialServices.AsText Method

 

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

Namespace:   System.Data.Entity.SqlServer
Assembly:  EntityFramework.SqlServer (in EntityFramework.SqlServer.dll)

NameDescription
System_CAPS_pubmethodAsText(DbGeography)

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

System_CAPS_pubmethodAsText(DbGeometry)

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


SqlSpatialServices.AsText Method (DbGeography)

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

public override string AsText(
	DbGeography geographyValue
)

Parameters

geographyValue
Type: System.Data.Entity.Spatial.DbGeography

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

Return Value

Type: System.String

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


SqlSpatialServices.AsText Method (DbGeometry)

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

public override string AsText(
	DbGeometry geometryValue
)

Parameters

geometryValue
Type: System.Data.Entity.Spatial.DbGeometry

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

Return Value

Type: System.String

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