wdb2merc - Convert Textual WDB datasets to binary Mercator Projected files
wdb2merc.pl <WDB-path> <output-path> wdb2merc.pl -h|-help
Reads the latitude/longitude coordinate values from textual WDB dataset files I(available at> http://www.evl.uic.edu/pape/data/WDB/) and converts them to Mercator projected distance values (in meters), writing the the values out in a packed binary format that is faster to load, and compresses the data approx. 35%.
The datasets are also scrubbed of some bad data (I checked my globe several times, but couldn't find longitude -544 degrees...).
The resulting binary files are used by GD::Map::Mercator to render map images.
To install GD::Map::Mercator, copy and paste the appropriate command in to your terminal.
cpanm
cpanm GD::Map::Mercator
CPAN shell
perl -MCPAN -e shell install GD::Map::Mercator
For more information on module installation, please visit the detailed CPAN module installation guide.