This function unprojects cartesian projected coordinates (in a defined cartographic projection) into geodetic coordinates using the PROJ function proj_trans_generic().
INPUT ARGUMENTS:
OUTPUT ARGUMENTS:
The coordinate vectors X and Y must be both scalars or both column vectors (of the same size). lon and lat will be according to the input dimensions. Angular units are by default radians and linear meters, although other can be specified in params, so X and Y must be congruent with params. The same applies to the coordinate order at input and output.
If a projection error occurs the resultant coordinates for the affected points have both Inf value and a warning message is emitted (one for each erroneous point).
See also: _op_fwd, _op_transform.
Package: octproj