Метод SqlGeometry.Point
Constructs a SqlGeometry instance that represents a Point instance from its X and Y values and an SRID.
Пространство имен: Microsoft.SqlServer.Types
Сборка: Microsoft.SqlServer.Types (в Microsoft.SqlServer.Types.dll)
Синтаксис
'Декларация
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)> _
Public Shared Function Point ( _
x As Double, _
y As Double, _
srid As Integer _
) As SqlGeometry
'Применение
Dim x As Double
Dim y As Double
Dim srid As Integer
Dim returnValue As SqlGeometry
returnValue = SqlGeometry.Point(x, y, srid)
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public static SqlGeometry Point(
double x,
double y,
int srid
)
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public:
static SqlGeometry^ Point(
double x,
double y,
int srid
)
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)>]
static member Point :
x:float *
y:float *
srid:int -> SqlGeometry
public static function Point(
x : double,
y : double,
srid : int
) : SqlGeometry
Параметры
- x
Тип: System.Double
A double that represents the X-coordinate of the Point being generated.
- y
Тип: System.Double
A double that represents the Y-coordinate of the Point being generated.
- srid
Тип: System.Int32
An int expression that represents the spatial reference ID (SRID) of the SqlGeometry instance you wish to return.
Возвращаемое значение
Тип: Microsoft.SqlServer.Types.SqlGeometry
A SqlGeometry instance that represents a point on a Euclidian coordinate system.
Замечания
This member is static.