Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting from distance for geography coordinates
Message
De
23/11/2011 08:58:29
 
 
À
23/11/2011 08:52:54
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2008
Application:
Web
Divers
Thread ID:
01529492
Message ID:
01529666
Vues:
14
>I suppose ...
>
>They hold some kind of index on the latitude and longitude
>They then first select a subset (the rectangle form my previous message), so they don't have to calculate the distance for every record
>And finally calculate the distance (aka radius) for each record in the subset
>
>Finally, they may store the sin or cos along with the data (longitude and latitude) - so they don't have to recalculate those values every time

Sounds similar to the approach we use in 2005. But, as it is builtin the engine, it certainly is running with much more performance. It is also much more easy to use. There is less command to work with in the SQL to obtain the results.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform