---
name: "PDL::GIS::Proj"
section: "3pm"
platform: "linux"
package: "pdl"
version: "1:2.081-2"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/PDL::GIS::Proj"
---

# PDL::GIS::Proj(3pm)

PDL interface to the PROJ projection library.

## NAME

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

## DESCRIPTION

For more information on the PROJ library, see: \<http://www.proj.org/\> #line 37 "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.

## AUTHOR

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

## COPYRIGHT NOTICE

Copyright 2003 Judd Taylor, USF Institute for Marine Remote Sensing (judd@marine.usf.edu).

GPL Now!

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
