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


Type: System.Nullable<Double>

The x-coordinate of the Point being generated.

Type: System.Nullable<Double>

The y-coordinate of the Point being generated

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
© 2015 Microsoft