| proj_factors | R Documentation |
Computes map projection factors (distortion measures) for a set of geographic coordinates and a given projected CRS. Returns a matrix with one row per input coordinate and one column per factor.
proj_factors(lp, crs)
lp |
A two-column numeric matrix of geographic coordinates (longitude, latitude) in decimal degrees. |
crs |
A PROJ CRS definition string for the target projection
(e.g. a PROJ string, WKT, or authority code such as |
Rows for coordinates where the factors computation fails (for
example latitudes outside +/-90) are filled with NaN. Missing input
coordinates give NA output.
A numeric matrix with nrow(lp) rows and the following columns:
Meridional scale factor (h)
Parallel scale factor (k)
Areal scale factor (s)
Angular distortion (omega), in radians
Meridian-parallel angle (theta prime), in radians
Meridian convergence (conv), in radians
Tissot semimajor axis (a)
Tissot semiminor axis (b)
Partial derivative dx/dlambda
Partial derivative dx/dphi
Partial derivative dy/dlambda
Partial derivative dy/dphi
# Lambert Azimuthal Equal Area
proj_factors(cbind(147, -42), "+proj=laea +lon_0=147 +lat_0=-42 +type=crs")
# Multiple coordinates
pts <- cbind(c(130, 147, 160), c(-20, -42, -35))
proj_factors(pts, "EPSG:3112")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.