[pktools] 361/375: ref option in pkegcs
Bas Couwenberg
sebastic at xs4all.nl
Wed Dec 3 21:54:30 UTC 2014
This is an automated email from the git hooks/post-receive script.
sebastic-guest pushed a commit to branch upstream-master
in repository pktools.
commit eb864ed0cc4916edf4dfe3a4e3c1c1fcd6d4f16a
Author: Pieter <kempenep at gmail.com>
Date: Fri Nov 21 16:31:35 2014 +0000
ref option in pkegcs
---
doc/description_pkdumpogr.dox | 16 ++++++++++++++++
src/apps/pkegcs.cc | 2 +-
2 files changed, 17 insertions(+), 1 deletion(-)
diff --git a/doc/description_pkdumpogr.dox b/doc/description_pkdumpogr.dox
index e69de29..db5f61a 100644
--- a/doc/description_pkdumpogr.dox
+++ b/doc/description_pkdumpogr.dox
@@ -0,0 +1,16 @@
+## SYNOPSIS
+
+<code>
+ Usage: pkdumpogr -i input.txt [-o output]
+
+
+ Options: [-ln layername] [-n attribute]* [-pos] [-transpose]
+
+ Advanced options:
+
+</code>
+
+\section pkdumpogr_description Description
+
+The utility 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).
+
diff --git a/src/apps/pkegcs.cc b/src/apps/pkegcs.cc
index 6d772fd..77f4234 100644
--- a/src/apps/pkegcs.cc
+++ b/src/apps/pkegcs.cc
@@ -27,7 +27,7 @@ int main(int argc, char *argv[])
Optionpk<unsigned short> band_opt("b", "band", "Band specific information", 0);
Optionpk<std::string> cell2bb_opt("c2b","cell2bb","convert cell code to geo coordinates of boundingbox (e.g. 32-AB)","");
Optionpk<std::string> cell2mid_opt("c2m","cell2mid","convert cell code to centre in geo coordinates (e.g. 32-AB)","");
- Optionpk<bool> refpixel_opt("\0", "ref", "get reference pixel (lower left corner of centre of gravity pixel)", false);
+ Optionpk<bool> refpixel_opt("ref", "ref", "get reference pixel (lower left corner of centre of gravity pixel)", false);
Optionpk<double> maskValue_opt("m", "mask", "mask value(s) for no data to calculate reference pixel in image",0);
Optionpk<int> dx_opt("dx","dx","resolution",250);
Optionpk<bool> geo2cell_opt("g2c", "geo2cell", "get cell code for coordinates in x_opt and y_opt given the resolution in dx_opt", false);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/pktools.git
More information about the Pkg-grass-devel
mailing list