SqlGeometry.Point 方法 (Double, Double, Int32)
构造一个 SqlGeometry 实例,该实例表示一个根据其 X 和 Y 值以及 SRID 构造的 Point 实例。
命名空间: Microsoft.SqlServer.Types
程序集: Microsoft.SqlServer.Types(位于 Microsoft.SqlServer.Types.dll)
语法
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public static SqlGeometry Point(
double x,
double y,
int srid
)
public:
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
static SqlGeometry^ Point(
double x,
double y,
int srid
)
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)>]
static member Point :
x:float *
y:float *
srid:int -> SqlGeometry
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)>
Public Shared Function Point (
x As Double,
y As Double,
srid As Integer
) As SqlGeometry
参数
x
Type: System.Double一个 double 值,该值表示所生成的 Point 的 X 坐标。
y
Type: System.Double一个 double 值,该值表示所生成的 Point 的 Y 坐标。
srid
Type: System.Int32一个 int 表达式,它表示您希望返回的 SqlGeometry 实例的空间引用 ID (SRID)。
返回值
Type: Microsoft.SqlServer.Types.SqlGeometry
一个 SqlGeometry 实例,该实例表示欧几里得坐标系中的一个点。
备注
此成员是 static。
另请参阅
SqlGeometry 类
Microsoft.SqlServer.Types 命名空间
返回页首