Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

SqlSpatialFunctions.PointGeometry Method

.NET Framework 4.6 and 4.5

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

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft