Man page - pkdumpogr(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
pkdumpogr
NAMESYNOPSIS
DESCRIPTION
OPTIONS
EXAMPLE
SEE ALSO
NAME
pkdumpogr - dump ogr file to text file or standard output
SYNOPSIS
pkdumpogr -i input.txt [ -o output ] [ options ]
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).
OPTIONS
-i filename , --input filename
Input shape file
-o filename , --output filename
Output ASCII file
-ln layername , --lname layername
Layer name(s) in sample (leave empty to select all)
-n attribute , --name attribute
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)
-v level , --verbose level
verbose (Default: 0)
EXAMPLE
Dump the attributes label and description for the vector dataset sample.sqlite to standard output (screen)
pkdumpogr -i sample.sqlite -n label -n description
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 -i sample.sqlite -n label -n description -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 -i input.sqlite
Dump only ATTRIBUTE of vector dataset input.sqlite including x and y position and output to ASCII file output.txt
pkdumpogr -i input.sqlite -o output.txt -n ATTRIBUTE -pos
SEE ALSO
pkascii2img (1)