DbSpatialServices.GetLatitude Method (DbGeography)
Returns the latitude coordinate of the given DbGeography value, if it represents a point.
Assembly: EntityFramework (in EntityFramework.dll)
Parameters
- geographyValue
-
Type:
System.Data.Entity.Spatial.DbGeography
The geography value, which need not represent a point.
Exception | Condition |
---|---|
ArgumentNullException | geographyValue is null. |
ArgumentException | geographyValue is not compatible with this spatial services implementation. |