Langue

SqlGeography.STDistance(SqlGeography) Méthode

Définition

Retourne la distance la plus courte entre un point d’une SqlGeography instance et un point dans une autre SqlGeography instance.

[Microsoft.SqlServer.Server.SqlMethod(IsDeterministic=true, IsPrecise=false)]
public System.Data.SqlTypes.SqlDouble STDistance(Microsoft.SqlServer.Types.SqlGeography other);
[<Microsoft.SqlServer.Server.SqlMethod(IsDeterministic=true, IsPrecise=false)>]
member this.STDistance : Microsoft.SqlServer.Types.SqlGeography -> System.Data.SqlTypes.SqlDouble
Public Function STDistance (other As SqlGeography) As SqlDouble

Paramètres

other
SqlGeography

Autre instance géographique à partir de laquelle mesurer la distance entre l’instance sur laquelle STDistance(SqlGeography) est appelée. Si un jeu vide est spécifié, STDistance(SqlGeography) retourne null.

Retours

Retourne null si les ID de référence spatiale (SRID) des SqlGeography instances ne correspondent pas. Si cette méthode est utilisée pour déterminer la distance entre les points antipodaux ou les points consécutifs sur les côtés opposés du globe, comme dans la distance entre POINT (0 0) et POINT (180 0), cette méthode retourne null.

Attributs

S’applique à