SqlGeography.STDistance(SqlGeography) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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