Tag Info

New answers tagged

2

If you look at the source for getGeodesicArea, which is actually in the LinearRing class, you will will see from the comments (and the code) that this calculates an approximate area based on a sphere. If you look at GeographicLib, which includes a Javascript port of the C++ library, you will see that they use ellipsoidal calculations, which will be more ...


2

The geodesic area for your example is 19518154994956.3 m² (using GeographicLib). E.g.: var points = [ {lat: 0, lon: 50}, {lat: -5, lon: -60}, {lat: -30, lon: -30} ]; var p = GeographicLib.PolygonArea; var result = p.Area(GeographicLib.Geodesic.WGS84, points, false); var area = result.area; // 19518154994956.285 Here are multiple ...


1

In addition to an answer over in SO, the inverse geodetic solution is not easy with near-antipodal points, as your question has. The inverse geodetic problem is solved iteratively using Vincenty's 1975 algorithm, which fails to converge for near antipodal points. However, the problem is still solvable using a different approach. See page 40 of Rapp RH ...



Top 50 recent answers are included