pkdumpogr - dump ogr file to text file or standard output
Contents
Description
pkdumpogr dumps the content of a vector dataset to (standard) output (screen or filename). The default
is to dump all the attributes. Individual attributes can be selected with the option -n. The X and Y
positions can be printed with the option -pos. Use the option -transpose to transpose the output (only
in combination with the option -n attribute).
Example
Dump the attributes label and description for the vector dataset sample.sqlite to standard output
(screen)
pkdumpogr-isample.sqlite-nlabel-ndescription
0 2 noforest
1 2 noforest
2 2 noforest
3 2 noforest
4 2 noforest
5 2 noforest
6 2 noforest
7 2 noforest
8 2 noforest
9 2 noforest
10 1 forest
11 2 noforest
Similar to previous example, but transpose output (does not work without explicitly defining options -n
for attributes)
pkdumpogr-isample.sqlite-nlabel-ndescription-t
0 2 2 2 2 2 2 2 2 2 2 1 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
pkdumpogr-iinput.sqlite
Dump only ATTRIBUTE of vector dataset input.sqlite including x and y position and output to ASCII file
output.txtpkdumpogr-iinput.sqlite-ooutput.txt-nATTRIBUTE-posName
pkdumpogr - dump ogr file to text file or standard output
Options
-ifilename, --inputfilename
Input shape file
-ofilename, --outputfilename
Output ASCII file
-lnlayername, --lnamelayername
Layer name(s) in sample (leave empty to select all)
-nattribute, --nameattribute
names of the attributes to select. Each attribute is stored in a separate band. Default is ALL:
write all attributes
-pos, --pos
include position (x and y)
-t, --transpose
transpose output (does not work for -n ALL)
-vlevel, --verboselevel
verbose (Default: 0)
See Also
pkascii2img(1) 01 January 2025 pkdumpogr(1)
Synopsis
pkdumpogr-iinput.txt [-ooutput] [options]
