Post Reply 
What is the best way to store coordinates
12-16-2013, 03:04 PM (This post was last modified: 12-16-2013 03:06 PM by Tim Wessman.)
Post: #4
RE: What is the best way to store coordinates
Well, this is bringing back memories. :-)

If you really would like to keep them grouped and since you are dealing with real numbers, I'd recommend doing a { #PN, [ N,E,EL], " " } type of structure. Note that there are not really 2d/3d vectors, but I believe you'll find grouping them like such will prove convenient. The first number I'd keep as an integer just for clarity's sake, but sticking it into the vector would reduce the size slightly. Compared with the 48 series, lists are going to be VERY fast because sizing information is encoded in the list and you don't have to scan everything to know the list size or get to the next object.

Alternatively, you could have 1 list of point numbers, 1 list of your vectored N,E,EL, and then 1 list for your codes. This would definitely be the fastest as you can do quicker searches for the PN or matching codes, but you have to be certain nothing can get out of sync else everything is messed up.

TW

Although I work for HP, the views and opinions I post here are my own.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: What is the best way to store coordinates - Tim Wessman - 12-16-2013 03:04 PM



User(s) browsing this thread: 1 Guest(s)