SqlSpatialFunctions.PointGeography 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.
Constructs a geography instance representing a Point instance from its x and y values and a spatial reference ID (SRID).
[System.Data.Entity.DbFunction("SqlServer", "POINTGEOGRAPHY")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="latitude")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="spatialReferenceId")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="longitude")]
public static System.Data.Entity.Spatial.DbGeography PointGeography (Nullable<double> latitude, Nullable<double> longitude, Nullable<int> spatialReferenceId);
static member PointGeography : Nullable<double> * Nullable<double> * Nullable<int> -> System.Data.Entity.Spatial.DbGeography
Public Shared Function PointGeography (latitude As Nullable(Of Double), longitude As Nullable(Of Double), spatialReferenceId As Nullable(Of Integer)) As DbGeography
Parameters
Returns
The constructed geography instance.
- Attributes
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework