SqlSpatialServices.GetLatitude Method (DbGeography)

 

Returns the latitude coordinate of the given DbGeography value, if it represents a point.

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

public override Nullable<double> GetLatitude(
	DbGeography geographyValue
)

Parameters

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

The geography value, which need not represent a point.

Return Value

Type: System.Nullable<Double>

The latitude coordinate of the given DbGeography value.