Skip to content

Commit 63b8f22

Browse files
committed
Merge pull request openlayers#1360 from sodle/master
Geodesic area fix (fixes openlayers#1358)
2 parents d3ad06f + db02fa7 commit 63b8f22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/OpenLayers/Geometry/LinearRing.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ OpenLayers.Geometry.LinearRing = OpenLayers.Class(
286286
(2 + Math.sin(OpenLayers.Util.rad(p1.y)) +
287287
Math.sin(OpenLayers.Util.rad(p2.y)));
288288
}
289-
area = area * 6378137.0 * 6378137.0 / 2.0;
289+
area = area * OpenLayers.Util.VincentyConstants.a * OpenLayers.Util.VincentyConstants.a / 2.0;
290290
}
291291
return area;
292292
},

0 commit comments

Comments
 (0)