Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2012 Forums
 Transact-SQL (2012)
 SQLGeography Assistance

Author  Topic 

ddamico
Yak Posting Veteran

76 Posts

Posted - 2013-05-10 : 08:37:04
Good day.

I am working with the SQLGeography class and objects to do some work with distance. The area where I am coming up a bit short of finding a clearly defined example of the methods need to achieve finding the bounding box from a lat/lon point.

As an example I have a give coordinate point (1,1) and want to find the Max/Min Lat & Lon 50 miles away.

I would then use these two points to find all records that fall within this box (circle). I have 8,100 locations in which to do this and the 250 million candidate records this will help get the dataset into a manageable size before calculating the actual distance.

We have our own functions that we use now but I would like to try an leverage the SQL Server functionality because from what I am reading it seems to be more accurate in.

Thanks. Dan
   

- Advertisement -