pktools  2.6.7
Processing Kernel for geospatial data
examples_pkdumpimg

Examples of pkdumpimg

We create a 5x5 raster dataset containing all 0 values except for its center (value=1)

1 cat input.txt
2 
3 0 0 0 0 0
4 0 0 0 0 0
5 0 0 1 0 0
6 0 0 0 0 0
7 0 0 0 0 0

Use pkascii2img to create an raster dataset from input.txt

1 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

1 pkdumpimg -i output.tif
1 0 0 0 0 0
2 0 0 0 0 0
3 0 0 1 0 0
4 0 0 0 0 0
5 0 0 0 0 0