A whole lot of abstraction- given two longitude/latitude points given from a GPS, I'm using the Pythagorean distance formula to find the distance between them. What unit of length would the distance be? Kilometers? Miles?
-
2Take your pick: en.wikipedia.org/wiki/Category:Units_of_length ... myself I would probably pick beard-seconds. So what's your real question?– blah238Oct 4, 2012 at 0:41
-
4what do you mean, IF the earth was flat......– Stephen LeadOct 4, 2012 at 3:14
-
Degrees min secs– Brad NesomOct 4, 2012 at 4:04
-
@Brad, actually it would be whatever angular units the GPS unit was set to. Probably decimal degrees but could easily be a radian, gradian or mil.– blah238Oct 4, 2012 at 5:05
-
To the OP: Have you already considered why you are using the Pythagorean distance formula instead of a more suitable formula given that the earth is in fact not flat?– blah238Oct 4, 2012 at 5:14
1 Answer
Just like any other function, you will get out the same unit of measurement you put in. In this example you are using lat/long and so will therefore get the distance between your two points (the hypotenuse) in degrees. The number of kilometers/miles/inches/whatever that the output corresponds to depends entirely on where on the surface of the earth the hypotenuse lies.
Also, it does not really matter in this instance that you are "pretending" the earth is flat. Along that note, if the earth was flat we wouldn't use lat/long as, again, those are ellipsoidal (angular) measurements. This is why we have map projections with grid based (cartesian) coordinate systems.
-
+1 Re your remarks on projections: the question can be understood as asking how to compute the scale of a Plate Carree projection.– whuberOct 4, 2012 at 15:59