Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting from distance for geography coordinates
Message
From
23/11/2011 08:58:29
 
 
To
23/11/2011 08:52:54
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01529492
Message ID:
01529666
Views:
13
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform