Man page - pkdumpimg(1)
Packages contains this manual
- pkfssvm(1)
- pkstatogr(1)
- pkfilterdem(1)
- pkextractimg(1)
- pkkalman(1)
- pksetmask(1)
- pksvm(1)
- pkascii2img(1)
- pkdsm2shadow(1)
- pkascii2ogr(1)
- pkpolygonize(1)
- pkfillnodata(1)
- pkextractogr(1)
- pksieve(1)
- pkdumpogr(1)
- pkstat(1)
- pkannogr(1)
- pkegcs(1)
- pkfilterascii(1)
- pkreclassogr(1)
- pksvmogr(1)
- pkgetmask(1)
- pkdiff(1)
- pkfsann(1)
- pkregann(1)
- pkcreatect(1)
- pkcomposite(1)
- pkstatascii(1)
- pkdumpimg(1)
- pkstatprofile(1)
- pkinfo(1)
- pkcrop(1)
- pkoptsvm(1)
- pkann(1)
- pkreclass(1)
- pkfilter(1)
apt-get install pktools
Manual
pkdumpimg
NAMESYNOPSIS
DESCRIPTION
OPTIONS
EXAMPLE
SEE ALSO
NAME
pkdumpimg - program to dump image content to ASCII or STDOUT
SYNOPSIS
pkdumpimg -i input [ -o output ] [ options ] [ advanced options ]
DESCRIPTION
pkdumpimg dumps the content of a raster dataset to (standard) output (screen or filename). The default is to dump the output in matrix format. Use -of line to dump each pixel value on a separate line, preceded by its position (x and y value). You can specify a bounding box to dump with either the extent of an OGR vector dataset or via the options -ulx -uly -lrx and -lry .
OPTIONS
-i filename , --input filename
input image file
-o filename , --output filename
Output ASCII file (Default is empty: use STDOUT)
-of matrix|line , --oformat matrix|line
Output format (matrix form or list (x,y,z) form). Default is matrix form
-b band , --band band
band index to crop
-e vector , --extent vector
get boundary from extent from polygons in vector file
-ulx value , --ulx value
Upper left x value bounding box (in geocoordinates if georef is true)
-uly value , --uly value
Upper left y value bounding box (in geocoordinates if georef is true)
-lrx value , --lrx value
Lower left x value bounding box (in geocoordinates if georef is true)
-lry value , --lry value
Lower left y value bounding box (in geocoordinates if georef is true)
-v level , --verbose level
verbose (Default: 0)
Advanced options
-dx
value
,
--dx
value
Output resolution in x (in meter) (0.0: keep original resolution)
-dy value , --dy value
Output resolution in y (in meter) (0.0: keep original resolution)
-r resampling , --resampling-method resampling
Resampling method (near: nearest neighbour, bilinear: bi-linear interpolation).
-srcnodata value , --srcnodata value
set no data value(s) for input image
-dstnodata value , --dstnodata value
nodata value for output if out of bounds.
EXAMPLE
We create a 5x5 raster dataset containing all 0 values except for its center (value=1)
cat input.txt
0 0 0 0 0
0 0 0 0 0
0 0 1 0 0
0 0 0 0 0
0 0 0 0 0
Use pkascii2img (1) to create an raster dataset from input.txt
pkascii2img -i input.txt -o output.tif -of GTiff -a_srs epsg:3035 -dx 25 -dy 25 -ulx 1000000 -uly 1000000
Dump the image content of output.tif to screen
pkdumpimg -i output.tif
SEE ALSO
pkascii2img (1)