Metoda SqlGeography.Point
Konstrukcje SqlGeography wystąpienie reprezentującą instancja Point od jego x i wartości y i przestrzennej odwołanie Identyfikatora (SRID).
Przestrzeń nazw: Microsoft.SqlServer.Types
Zestaw: Microsoft.SqlServer.Types (w Microsoft.SqlServer.Types.dll)
Składnia
'Deklaracja
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)> _
Public Shared Function Point ( _
latitude As Double, _
longitude As Double, _
srid As Integer _
) As SqlGeography
'Użycie
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
Parametry
- latitude
Typ: System.Double
A podwójne , reprezentuje współrzędną x punktu generowany.
- longitude
Typ: System.Double
A podwójne , reprezentuje współrzędną y punktu generowany.
- srid
Typ: System.Int32
Int wyrażenie reprezentującego SRID z Geografia wystąpienie, które chcesz przywrócić.
Wartość zwracana
Typ: Microsoft.SqlServer.Types.SqlGeography
A SqlGeography wystąpienie zbudowane z określonej szerokości, długości i SRID wartości.