Processing Kernel for remote sensing data

Introduction

pktools is a collection of programs written in C++ for image processing with a focus on remote sensing applications. It relies on the Geospatial Data Abstraction Library (GDAL, http://www.gdal.org) and OGR.

All utilities in pktools use command line options and have a built in help

Check the code statistics

License

pktools is written by Pieter Kempeneers and released under the GNU General Public License version3

See http://www.gnu.org/licenses for more details

Download

You can download the latest release from Savannah

Or you can get a copy from the Git repository

git clone git://git.savannah.nongnu.org/pktools.git

How to refer

Please refer to pktools as: http://pktools.nongnu.org (Pieter Kempeneers)

Or use the following reference to the book on Open Source Geospatial Tools

contact: kempenep at gmail.com

Installation

Installation script for Debian based distributions

Users working with Debian based distributions (e.g., Ubuntu) can download install_pktools.sh. This script will automatically download the latest release of pktools and dependencies. You need an internet connection when running the script (as root or sudo):

sudo bash install_pktools.sh

Manual installation

For a manual installation, download the latest release from Savannah

Optionally: check the release md5sum to ensure originality.

md5sum pktools-latest.tar.gz

The result should be identical to the content of the corresponding md5 file you downloaded.

Unpack the tar zip file

tar xzvf pktools-latest.tar.gz
cd pktools-*

Basic installation (please refer to INSTALL file for more advanced configuration)

./configure
make
sudo make install
sudo ldconfig

Required dependences

packages to install before pktools

Example on how to install required packages in Debian based system (using apt-get):

Optional dependences

To enable program pkoptsvm

Install additional package

Example on how to install required packages in Debian based system (using apt-get):

sudo apt-get install libnlopt-dev

Note: currently, the repository seems not to include this package anymore and manual installation is required (see also http://ab-initio.mit.edu/wiki/index.php/NLopt#Download_and_installation)

./configure --enable-nlopt
make
sudo make install
sudo ldconfig

To enable programs pkann and pkfsann

Install package

Example on how to install required packages in Debian based system (using apt-get):

sudo apt-get install libfann-dev

Install pktools with extra configuration option –libfann-dev:

./configure --enable-fann
make
sudo make install
sudo ldconfig

To enable program pklas2img

Install additional packages:

Example on how to install required packages in Debian based system (using apt-get):

deb http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu <codename> main
deb-src http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu <codename> main
sudo apt-get install libboost-dev liblas-dev liblas-c-dev liblas1 liblas2 liblas-c2 python-liblas

Or install manually as explained in http://www.liblas.org/compilation.html#using-unix-makefiles-on-linux

! Note that if you want support for compressed las format (LAZ), you need to install laszip first (http://www.laszip.org) and install liblas manually

./configure --enable-las
make
sudo make install
sudo ldconfig

Bug reports and change requests

Please write a ticket in savannah to report bugs and request changes. You will automatically be informed about the ticket status and this helps me to keep track of the bugs/changes.