Geoscience Reference
In-Depth Information
Chapter 12
Pktools
This chapter covers one of the third party tool boxes selected in this topic. Pktools, 1
developed and maintained by one of the authors, is released under the GNU Public
License (GPL) v3. It is written in C++ and relies on the GDAL API. It is available
with a command line interface for different platforms, including Linux andWindows.
The focus of the utilities implemented in pktools is on processing geospatial
data. Although some of the utilities overlap with GDAL and OGR—partly due to
the continuous new development—pktools is designed to be complementary and
more oriented towards remote sensing applications. Only a selection of utilities is
presented here, but the full list is available on the Internet. 2 The selection is based on
the utilities that are used for the case study on land cover classification in Chap. 17 .
It is hoped that the material covered in this chapter will familiarize yourself with
the concepts of pktools and help to quickly get to grips with the utilities that are not
discussed here.
12.1 Basic Usage
Users interact with pktools via the command line interface in a very similar way to
the GDAL and OGR utilities, although some exceptions exist. In pktools, most of the
options have both a short and a long option (referred hereinafter as -s|--long ).
The short and long options can be used interchangeably. Input and output files are
always set with the options -i|--input and -o|--output . This is different to
the GDAL utilities, which commonly use the penultimate and last arguments as input
and output respectively. Like GDAL and OGR, each utility in pktools comes with a
built in help function, available as a short ( -h ) and a long option ( --help ). In some
cases, the long option provides additional information (e.g. advanced options).
1 http://pktools.nongnu.org
2 http://pktools.nongnu.org/html/md_apps.html#available_tools
 
Search WWH ::




Custom Search