Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting from distance for geography coordinates
Message
 
 
To
22/11/2011 13:35:15
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01529492
Message ID:
01529570
Views:
14
>>George suggests to use
>>
>>I would recommend that you allow the calculations to process the data using miles. If you want the results in KM, simply multiply values by 1.609344. You could modify the CalculateDistance function to multiply by this value just prior to returning.

>>
>>but I don't see how did he arrive to the constants used in these formulas (I assume Michel used his scripts).
>
>This goes back to last year from several threads created on the topic. At that time, it was R & D but only since a week I have put it all in a class Geography to do multiple related operations. So, those values probably come from one of those threads. I did adjust it to kilometer as this is our baseline. But, if a request to go in miles would apply, I also have a formula for that.

I actually don't understand a bunch of constants used and how exactly you're calculating the bounding box.

Can you explain both parts with constant explanations for each and conversion back and forth?

Thanks.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform