SqlSpatialServices.GetXCoordinate(DbGeometry) Method

Definition

Returns the X coordinate of the given DbGeometry value, if it represents a point.

public override Nullable<double> GetXCoordinate (System.Data.Entity.Spatial.DbGeometry geometryValue);
override this.GetXCoordinate : System.Data.Entity.Spatial.DbGeometry -> Nullable<double>
Public Overrides Function GetXCoordinate (geometryValue As DbGeometry) As Nullable(Of Double)

Parameters

geometryValue
DbGeometry

The geometry value, which need not represent a point.

Returns

The X coordinate of the given DbGeometry value.

Applies to