View Single Post
  #9 (permalink)  
Old 10-06-2007, 10:20 PM
LineCutter's Avatar
LineCutter LineCutter is offline
Senior Member
 
Join Date: May 2007
Location: Daarsit
Posts: 117
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Small tables work, large tables are too slow, but work. You're using GPS data, so can't jump from one end of the table to another without passing through a fair amount of it.

Sort the big data file
Find your start location & filter Lat & Long within a reasonable distance of this (how fast do you drive?).
Copy this to another table & refer to this for the immediate data.
At some distance from the boundary of the GPS data for your filtered table you delete the "wrong" side & add by using a filter the data for the same distance in the direction you are traveling.

Haven't tested this for speed with the filter process in the background & the coordinate processing in full flow.

Alternative would be to use a list & a binary sort routine with boundaries set according to the region of interest, rather than the whole table each time.
Reply With Quote