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

 

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

Namespace:   System.Data.Entity.SqlServer
Assembly:  EntityFramework.SqlServer (in EntityFramework.SqlServer.dll)

[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "xCoordinate")]
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "yCoordinate")]
[SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", 
	MessageId = "y", Justification = "Naming convention prescribed by OGC specification")]
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "spatialReferenceId")]
[DbFunctionAttribute("SqlServer", "POINTGEOMETRY")]
[SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", 
	MessageId = "x", Justification = "Naming convention prescribed by OGC specification")]
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.Entity.Spatial.DbGeometry

The constructed geometry instance.