Batch merge for rc2 of 2.7. 'svn merge -r7967:HEAD from trunk (Closes #1733) (Closes #1489) (Closes #1639) (Closes #1718) (Closes #1723) (Closes #1732) (Closes #1616) (Closes #1722)
git-svn-id: http://svn.openlayers.org/branches/openlayers/2.7@8012 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -796,13 +796,18 @@ OpenLayers.Util.rad = function(x) {return x*Math.PI/180;};
|
||||
|
||||
/**
|
||||
* Function: distVincenty
|
||||
* Given two objects representing points with geographic coordinates, this
|
||||
* calculates the distance between those points on the surface of an
|
||||
* ellipsoid.
|
||||
*
|
||||
* Parameters:
|
||||
* p1 - {<OpenLayers.LonLat>} (or any object with both .lat, .lon properties)
|
||||
* p2 - {<OpenLayers.LonLat>} (or any object with both .lat, .lon properties)
|
||||
*
|
||||
* Returns:
|
||||
* {Float}
|
||||
* {Float} The distance (in km) between the two input points as measured on an
|
||||
* ellipsoid. Note that the input point objects must be in geographic
|
||||
* coordinates (decimal degrees) and the return distance is in kilometers.
|
||||
*/
|
||||
OpenLayers.Util.distVincenty=function(p1, p2) {
|
||||
var a = 6378137, b = 6356752.3142, f = 1/298.257223563;
|
||||
|
||||
Reference in New Issue
Block a user