Description Usage Arguments Value Author(s) References See Also Examples
Compute the perimeter of a polygon (or the length of a line) with longitude/latitude coordinates, on an ellipsoid (WGS84 by default)
1 2 3 4 5 6 7 8 |
x |
Longitude/latitude of the points forming a polygon or line; Must be a matrix of 2 columns (first one is longitude, second is latitude) or a SpatialPolygons* or SpatialLines* object |
a |
major (equatorial) radius of the ellipsoid. The default value is for WGS84 |
f |
ellipsoid flattening. The default value is for WGS84 |
... |
Additional arguments. None implemented |
Numeric. The perimeter or length in m.
This function calls GeographicLib code by C.F.F. Karney
C.F.F. Karney, 2013. Algorithms for geodesics, J. Geodesy 87: 43-55. https://dx.doi.org/10.1007/s00190-012-0578-z. Addenda: http://geographiclib.sf.net/geod-addenda.html. Also see http://geographiclib.sourceforge.net/
1 2 |
Loading required package: sp
[1] 40775666
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.