LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

pnmmercator

Convert between map projections for images

TLDR

Apply Mercator projection
$ pnmmercator [input.pnm] > [output.pnm]
copy
Inverse projection
$ pnmmercator -inverse [input.pnm] > [output.pnm]
copy

SYNOPSIS

pnmmercator [options] [file]

DESCRIPTION

pnmmercator converts PNM images between equirectangular (plate carrée) and Mercator map projections. The input image is treated as a map where rows correspond to latitude lines and columns to longitude lines.The forward transform converts equirectangular to Mercator projection, stretching areas near the poles. The -inverse option reverses this, converting from Mercator back to equirectangular. Part of the Netpbm toolkit.

PARAMETERS

-inverse

Convert from Mercator to equirectangular.

INSTALL

sudo apt install netpbm
copy
sudo dnf install netpbm
copy
sudo pacman -S netpbm
copy
sudo apk add netpbm
copy
sudo zypper install netpbm
copy
brew install netpbm
copy
nix profile install nixpkgs#netpbm
copy

SEE ALSO

Copied to clipboard
Kai