3) = round(54972.271.3)īoth ellipsoid and spherical distances calculated by geodist are accurate to machine precision (to the millimeter).As well as how the distances between geological points were calculated Calculating the distance between two points on the earth is fundamental to calculate all the measurements mentioned in earlier posts. FlindersPeak to Buninyong using GRS80 ellipsoid Geodist lat1 lon1 lat2 lon2, gen(ds) sphere Geodist lat1 lon1 lat2 lon2, gen(dWGS84) // just to compare * used by -geodist- for distances on a shpere is 6371km. * of the ellipsoid by using a very large flattening ratio. * Use Vincenty's equations to check spherical distances. Rainsford line (e), International ellipsoid Rainsford line (d), International ellipsoid Rainsford line (c), International ellipsoid Rainsford line (b), International ellipsoid * on the ellipsoid with application of nested equations, Survey Review 22(176): (1975) Direct and inverse solutions of geodesics * Duplicate all 5 examples Vincenty used to compare his results with those of Here's a small subset:Ĭode: * Choose to run this script under the executable versionĬscript "geodist - Stata version `c(stata_version)' " adofile geodist With respect to the validity of the results produced by my programs, I'm always happy to provide all certification scripts that I use upon request. That's because ArcGIS works with projected coordinate systems. I'm no expert on ArcGIS, but as far as I can tell, ArcGIS has historically calculated Euclidean distances between features. The Haversine and Laws of Cosine equations (which are mathematically equivalent) are used if the earth is modeled as a sphere. By default, the shape of the earth is approximated using the WGS 1984 reference ellipsoid (what GPS devices and Google Earth/Map use) and distances are computed using Vincenty's inverse solution equations. Both are available from SSC.Īs explained in detail in the help file, geodist calculates the length of the shortest curve between two points along the surface of a mathematical model of the earth. I'm the author of geodist, which is a standalone version of the distance routines I wrote for geonear, a program that finds nearest neighbors using geodetic distances.
0 Comments
Leave a Reply. |