pktools  2.6.7
Processing Kernel for geospatial data
examples_pkdumpogr

Examples of pkdumpogr

Dump the attributes label and description for the vector dataset sample.sqlite to standard output (screen)

1 pkdumpogr -i sample.sqlite -n label -n description
1 0 2 noforest
2 1 2 noforest
3 2 2 noforest
4 3 2 noforest
5 4 2 noforest
6 5 2 noforest
7 6 2 noforest
8 7 2 noforest
9 8 2 noforest
10 9 2 noforest
11 10 1 forest
12 11 2 noforest

Similar to previous example, but transpose output (does not work without explicitly defining options -n for attributes)

1 pkdumpogr -i sample.sqlite -n label -n description -t
1 0 2 2 2 2 2 2 2 2 2 2 1 2
2 1 noforest noforest noforest noforest noforest noforest noforest noforest noforest noforest forest noforest

Dump the entire content of vector dataset input.sqlite to standard output

1 pkdumpogr -i input.sqlite

Dump only ATTRIBUTE of vector dataset input.sqlite including x and y position and output to ASCII file output.txt

1 pkdumpogr -i input.sqlite -o output.txt -n ATTRIBUTE -pos