logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

PDL::GIS::Proj - PDL interface to the PROJ projection library.

Author

       Judd Taylor, Orbital Systems, Ltd.  judd dot t at orbitalsystems dot com

Description

       For more information on the PROJ library, see: <http://www.proj.org/> #line 36 "Proj.pm"

Functions

get_proj_info($params_string)
       Returns a string with information about what parameters proj will actually use, this includes defaults,
       and +init=file stuff. It's the same as running 'proj -v'. It uses the proj command line, so it might not
       work with all shells. I've tested it with bash.

   fwd_transform
         Signature: (lonlat(n=2); [o] xy(n); char* params)

       PROJ forward transformation $params is a string of the projection transformation parameters.

       Returns a pdl with x, y values at positions 0, 1. The units are dependent on PROJ behavior. They will be
       PDL->null if an error has occurred.

       Ignores bad elements of $lat and $lon, and sets the corresponding elements of $x and $y to BAD

       fwd_transform processes bad values.  It will set the bad-value flag of all output ndarrays if the flag is
       set for any of the input ndarrays.

   inv_transform
         Signature: (xy(n=2); [o] lonlat(n); char* params)

       PROJ inverse transformation $params is a string of the projection transformation parameters.

       Returns a pdl with lon, lat values at positions 0, 1. The units are dependent on PROJ behavior. They will
       be PDL->null if an error has occurred.

       Ignores bad elements of $lat and $lon, and sets the corresponding elements of $x and $y to BAD

       inv_transform processes bad values.  It will set the bad-value flag of all output ndarrays if the flag is
       set for any of the input ndarrays.

   proj_version
       Returns a 3-element list with PROJ major, minor, patch version-numbers.

Name

       PDL::GIS::Proj - PDL interface to the PROJ projection library.

See Also