SqlGeography.Point 方法
Constructs a SqlGeography instance representing a Point instance from its x and y values and a spatial reference ID (SRID).
命名空間: Microsoft.SqlServer.Types
組件: Microsoft.SqlServer.Types (在 Microsoft.SqlServer.Types.dll 中)
語法
'宣告
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)> _
Public Shared Function Point ( _
latitude As Double, _
longitude As Double, _
srid As Integer _
) As SqlGeography
'用途
Dim latitude As Double
Dim longitude As Double
Dim srid As Integer
Dim returnValue As SqlGeography
returnValue = SqlGeography.Point(latitude, _
longitude, srid)
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public static SqlGeography Point(
double latitude,
double longitude,
int srid
)
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public:
static SqlGeography^ Point(
double latitude,
double longitude,
int srid
)
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)>]
static member Point :
latitude:float *
longitude:float *
srid:int -> SqlGeography
public static function Point(
latitude : double,
longitude : double,
srid : int
) : SqlGeography
參數
- latitude
型別:System.Double
A double that represents the x-coordinate of the Point being generated.
- longitude
型別:System.Double
A double that represents the y-coordinate of the Point being generated.
- srid
型別:System.Int32
An int expression that represents the SRID of the geography instance you wish to return.
傳回值
型別:Microsoft.SqlServer.Types.SqlGeography
A SqlGeography instance constructed from the specified latitude, longitude, and SRID values.