SqlSpatialServices.AsText Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 override string AsText (System.Data.Entity.Spatial.DbGeography geographyValue);
override this.AsText : System.Data.Entity.Spatial.DbGeography -> string
Public Overrides 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.
Applies to
AsText(DbGeometry)
Gets the well-known text representation of the given DbGeometry value, including only X and Y coordinates for points.
public override string AsText (System.Data.Entity.Spatial.DbGeometry geometryValue);
override this.AsText : System.Data.Entity.Spatial.DbGeometry -> string
Public Overrides 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.
Applies to
Entity Framework