This function projects geodetic coordinates into cartesian projected coordinates in the defined cartographic projection using the PROJ function proj_trans_generic().
lon is a column vector containing the geodetic longitude. lat is a column vector containing the geodetic latitude. params is a text string containing the projection parameters in PROJ format (ONLY format ’+’ style).
The coordinate vectors lon and lat must be both scalars or both column vectors (of the same size). Angular units are by default radians, although other can be specified in params, so lon and lat must be congruent with params
X is a column vector containing the X projected coordinates. Y is a column vector containing the Y projected coordinates.
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). Linear units are by default meters, although other can be specified in params, so X and Y will be congruent with params
See also: _op_inv, _op_transform.
Package: octproj