SqlSpatialFunctions.PointGeography Method (Nullable<Double>, Nullable<Double>, Nullable<Int32>)

.NET Framework (current version)
 

Constructs a geography instance representing a Point instance from its x and y values and a spatial reference ID (SRID).

Namespace:   System.Data.Objects.SqlClient
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

[EdmFunctionAttribute("SqlServer", "POINTGEOGRAPHY")]
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.

Return Value

Type: System.Data.Spatial.DbGeography

The constructed geography instance.

.NET Framework
Available since 4.5
Return to top
Show: