This function projects geodetic coordinates into cartesian projected coordinates in the defined cartographic projection using the PROJ function proj_trans_generic().
INPUT ARGUMENTS:
OUTPUT ARGUMENTS:
lon or lat can be scalars, vectors or 2D matrices. X and X will be according to the higher dimension input argument. Angular units are by default radians and linear meters, although other can be specified in params, so lon and lat 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_inv, op_transform.
Package: octproj