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

.NET Framework (current version)
 

Constructs a geometry 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", "POINTGEOMETRY")]
public static DbGeometry PointGeometry(
	Nullable<double> xCoordinate,
	Nullable<double> yCoordinate,
	Nullable<int> spatialReferenceId
)

Parameters

xCoordinate
Type: System.Nullable<Double>

The x-coordinate of the Point being generated.

yCoordinate
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.DbGeometry

The constructed geometry instance.

.NET Framework
Available since 4.5
Return to top
Show: