[pktools] 57/375: pkinfo all visible help info

Bas Couwenberg sebastic at xs4all.nl
Wed Dec 3 21:53:58 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 400f7f35ff6f2083de72f74fdeb3b5a1093b5cd8
Author: user <user at osgeolive.(none)>
Date:   Tue Feb 5 06:04:31 2013 +0100

    pkinfo all visible help info
---
 doc/createappsdox.sh |  2 +-
 doc/faq_pkinfo.dox   |  2 +-
 src/apps/pkinfo.cc   | 52 ++++++++++++++++++++++++++--------------------------
 3 files changed, 28 insertions(+), 28 deletions(-)

diff --git a/doc/createappsdox.sh b/doc/createappsdox.sh
index a117301..57a7f64 100755
--- a/doc/createappsdox.sh
+++ b/doc/createappsdox.sh
@@ -53,7 +53,7 @@ done >> ../doc/apps.dox
 echo "Savannah repository for homepage can only be maintained via cvs"
 #mkdir ~/tmp
 #cd ~/tmp
-#cvs -z3 -d:ext:kempenep at cvs.sv.gnu.org:/web/pktools co pktools"
+#cvs -z3 -d:ext:kempenep at cvs.sv.gnu.org:/web/pktools co pktools
 #cd pktools/html
 #rm *
 #cvs rm *
diff --git a/doc/faq_pkinfo.dox b/doc/faq_pkinfo.dox
index 8804344..09c5dc7 100644
--- a/doc/faq_pkinfo.dox
+++ b/doc/faq_pkinfo.dox
@@ -1,4 +1,4 @@
-\section faq_pkinfo FAQ for pkinfo
+\section faq_pkinfo Frequently asked questions about pkinfo
 
  Q1. First question
  A1. First answer
diff --git a/src/apps/pkinfo.cc b/src/apps/pkinfo.cc
index a8d6c4f..7776a10 100644
--- a/src/apps/pkinfo.cc
+++ b/src/apps/pkinfo.cc
@@ -27,41 +27,41 @@ along with pktools.  If not, see <http://www.gnu.org/licenses/>.
 int main(int argc, char *argv[])
 {
   Optionpk<std::string> input_opt("i","input","Input image file");
-  Optionpk<bool>  bbox_opt("bb", "bbox", "Shows bounding box ", false,1);
-  Optionpk<bool>  bbox_te_opt("te", "te", "Shows bounding box in GDAL format: xmin ymin xmax ymax ", false,1);
-  Optionpk<bool>  centre_opt("c", "centre", "Image centre in projected X,Y coordinates ", false,1);
-  Optionpk<bool>  colorTable_opt("ct", "colourtable", "Shows colour table ", false,1);
-  Optionpk<bool>  samples_opt("s", "samples", "Number of samples in image ", false,1);
-  Optionpk<bool>  lines_opt("l", "lines", "Number of lines in image ", false,1);
-  Optionpk<bool>  nband_opt("nb", "nband", "Show number of bands in image", false,1);
-  Optionpk<short>  band_opt("b", "band", "Band specific information", 0,1);
-  Optionpk<bool>  dx_opt("dx", "dx", "Gets resolution in x (in m)", false,1);
-  Optionpk<bool>  dy_opt("dy", "dy", "Gets resolution in y (in m)", false,1);
-  Optionpk<bool>  minmax_opt("mm", "minmax", "Shows min and max value of the image ", false,1);
-  Optionpk<bool>  stat_opt("stat", "stat", "Shows statistics (min,max, mean and stdDev of the image)", false,1);
+  Optionpk<bool>  bbox_opt("bb", "bbox", "Shows bounding box ", false,0);
+  Optionpk<bool>  bbox_te_opt("te", "te", "Shows bounding box in GDAL format: xmin ymin xmax ymax ", false,0);
+  Optionpk<bool>  centre_opt("c", "centre", "Image centre in projected X,Y coordinates ", false,0);
+  Optionpk<bool>  colorTable_opt("ct", "colourtable", "Shows colour table ", false,0);
+  Optionpk<bool>  samples_opt("s", "samples", "Number of samples in image ", false,0);
+  Optionpk<bool>  lines_opt("l", "lines", "Number of lines in image ", false,0);
+  Optionpk<bool>  nband_opt("nb", "nband", "Show number of bands in image", false,0);
+  Optionpk<short>  band_opt("b", "band", "Band specific information", 0,0);
+  Optionpk<bool>  dx_opt("dx", "dx", "Gets resolution in x (in m)", false,0);
+  Optionpk<bool>  dy_opt("dy", "dy", "Gets resolution in y (in m)", false,0);
+  Optionpk<bool>  minmax_opt("mm", "minmax", "Shows min and max value of the image ", false,0);
+  Optionpk<bool>  stat_opt("stat", "stat", "Shows statistics (min,max, mean and stdDev of the image)", false,0);
   Optionpk<double>  min_opt("min", "min", "Sets minimum for histogram");
   Optionpk<double>  max_opt("max", "max", "Sets maximum for histogram");
-  Optionpk<bool>  relative_opt("rel", "rel", "Calculates relative histogram in percentage", false,1);
-  Optionpk<bool>  projection_opt("p", "projection", "Shows projection of the image ", false,1);
-  Optionpk<bool>  geo_opt("geo", "geo", "Gets geotransform  ", false,1);
-  Optionpk<bool>  interleave_opt("il", "interleave", "Shows interleave ", false,1);
-  Optionpk<bool>  filename_opt("f", "filename", "Shows image filename ", false,1);
-  Optionpk<bool>  cover_opt("cov", "cover", "Image covers bounding box (or x and y pos) if printed to std out ", false,1);
+  Optionpk<bool>  relative_opt("rel", "rel", "Calculates relative histogram in percentage", false,0);
+  Optionpk<bool>  projection_opt("p", "projection", "Shows projection of the image ", false,0);
+  Optionpk<bool>  geo_opt("geo", "geo", "Gets geotransform  ", false,0);
+  Optionpk<bool>  interleave_opt("il", "interleave", "Shows interleave ", false,0);
+  Optionpk<bool>  filename_opt("f", "filename", "Shows image filename ", false,0);
+  Optionpk<bool>  cover_opt("cov", "cover", "Image covers bounding box (or x and y pos) if printed to std out ", false,0);
   Optionpk<double>  x_opt("x", "xpos", "x pos");
   Optionpk<double>  y_opt("y", "ypos", "y pos");
-  Optionpk<bool>  read_opt("r", "read", "Reads row y (in projected coordinates if geo option is set, otherwise in image coordinates, 0 based)",false,1);
-  Optionpk<bool>  refpixel_opt("ref", "ref", "Gets reference pixel (lower left corner of centre of gravity pixel)", false,1);
-  Optionpk<bool>  driver_opt("of", "oformat", "Gets driver description ", false,1);
+  Optionpk<bool>  read_opt("r", "read", "Reads row y (in projected coordinates if geo option is set, otherwise in image coordinates, 0 based)",false,0);
+  Optionpk<bool>  refpixel_opt("ref", "ref", "Gets reference pixel (lower left corner of centre of gravity pixel)", false,0);
+  Optionpk<bool>  driver_opt("of", "oformat", "Gets driver description ", false,0);
   Optionpk<std::string>  extent_opt("e", "extent", "Gets boundary from extent from polygons in vector file");
   Optionpk<double>  ulx_opt("ulx", "ulx", "Upper left x value bounding box");
   Optionpk<double>  uly_opt("uly", "uly", "Upper left y value bounding box");
   Optionpk<double>  lrx_opt("lrx", "lrx", "Lower right x value bounding box");
   Optionpk<double>  lry_opt("lry", "lry", "Lower right y value bounding box");
-  Optionpk<bool>  hist_opt("hist", "hist", "Calculates histogram. Use --rel for a relative histogram output. ", false,1);
-  Optionpk<short>  nbin_opt("nbin", "nbin", "Number of bins used in histogram. Use 0 for all input values as integers", 0,1);
-  Optionpk<bool>  type_opt("ot", "otype", "Returns data type", false,1);
-  Optionpk<bool>  description_opt("d", "description", "Returns image description", false,1);
-  Optionpk<bool>  metadata_opt("meta", "meta", "Shows meta data ", false,1);
+  Optionpk<bool>  hist_opt("hist", "hist", "Calculates histogram. Use --rel for a relative histogram output. ", false,0);
+  Optionpk<short>  nbin_opt("nbin", "nbin", "Number of bins used in histogram. Use 0 for all input values as integers", 0,0);
+  Optionpk<bool>  type_opt("ot", "otype", "Returns data type", false,0);
+  Optionpk<bool>  description_opt("d", "description", "Returns image description", false,0);
+  Optionpk<bool>  metadata_opt("meta", "meta", "Shows meta data ", false,0);
   Optionpk<double> nodata_opt("nodata", "nodata", "Sets no data value(s) for calculations (flags in input image)");
 
   bool doProcess;//stop process when program was invoked with help option (-h --help)

-- 
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