On 06/18/2013 10:42 AM, Jeff Herrin
wrote:
PostGIS has some functions that may be of use but might be overkill depending on your use but I don't see anything in earthdistance. What are you trying to solve? It's one thing if you are looking for a one-degree-accurate magnetic-variation-compensated great-circle heading for a 6,000km flight using WGS84 projection (initial-heading, of course, as it will vary over the course of your travel). If you just want to be accurate to eight compass-points over a few city-blocks then simple trig is probably more than sufficient. Cheers, Steve |