SqlSpatialFunctions.PointGeography Method (Nullable<Double>, Nullable<Double>, Nullable<Int32>)
Constructs a geography instance representing a Point instance from its x and y values and a spatial reference ID (SRID).
Assembly: EntityFramework.SqlServer (in EntityFramework.SqlServer.dll)
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "latitude")] [SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "spatialReferenceId")] [DbFunctionAttribute("SqlServer", "POINTGEOGRAPHY")] [SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "longitude")] public static DbGeography PointGeography( Nullable<double> latitude, Nullable<double> longitude, Nullable<int> spatialReferenceId )
Parameters
- latitude
-
Type:
System.Nullable<Double>
The x-coordinate of the Point being generated.
- longitude
-
Type:
System.Nullable<Double>
The y-coordinate of the Point being generated
- spatialReferenceId
-
Type:
System.Nullable<Int32>
The SRID of the geography instance.