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 a0290f10351a72a6907d21357073f396636d544a
Author: Pieter Kempeneers <kempe...@gmail.com>
Date:   Thu Dec 12 09:20:29 2013 +0100

    update examples in doc
---
 doc/examples_pkascii2ogr.dox    |  2 +-
 doc/examples_pkclassify_svm.dox | 19 +------------------
 doc/examples_pkdiff.dox         |  4 ++--
 doc/examples_pkextract.dox      |  2 +-
 doc/examples_pkreclass.dox      |  8 +++++---
 doc/mainpage.dox                |  2 +-
 6 files changed, 11 insertions(+), 26 deletions(-)

diff --git a/doc/examples_pkascii2ogr.dox b/doc/examples_pkascii2ogr.dox
index 2c5231f..e271f14 100644
--- a/doc/examples_pkascii2ogr.dox
+++ b/doc/examples_pkascii2ogr.dox
@@ -1,5 +1,5 @@
 \section examples_pkascii2ogr Examples of pkascii2ogr
 \code
-pkascii2ogr -i input.txt -o output.shp -x 2 -y 1 -n id -ot Integer -n label 
-ot Integer -p epsg:4326
+pkascii2ogr -i input.txt -o output.shp -x 2 -y 1 -n id -ot Integer -n label 
-ot Integer -a_srs epsg:4326
 \endcode
 create a vector shape file (output.shp) from input ASCII file (input.txt). The 
coordinates x (longitude) and y (latitude) can be found in input.txt as columns 
3 and 2 respectively (columns start counting from 0). The remaining 2 columns 
in input.txt are used as fields (attributes) of type integer: id (column 0) and 
label (column 3). The projection is set to lat lon (epsg:4326). 
diff --git a/doc/examples_pkclassify_svm.dox b/doc/examples_pkclassify_svm.dox
index 1fc7149..6f6fa64 100644
--- a/doc/examples_pkclassify_svm.dox
+++ b/doc/examples_pkclassify_svm.dox
@@ -13,21 +13,4 @@ Classification using bootstrap aggregation. The training 
sample is randomly spli
 \code
 pkclassify_svm -i input.tif -t training.shp -o output.tif -p 1 -p 1 -p 1 -p 1 
-p 1 -p 1 -p 1 -p 1 -p 1 -p 1 -p 1 -p 0.2 -p 1 -p 1 -p 1
 \endcode
-Classification using prior probabilities for each class. The priors are 
automatically normalized. The order in which the options -p are provide should 
respect the alphanumeric order of the class names (class 10 comes before 2...)
-
-
-
-replace pixel values 1 and 2 with value 0
-
-\code
-pkreclass -i vector.shp -o output.shp -c FROM -r TO -n INFIELD
-\endcode
-replace FROM with TO in field INFIELD (of type string) in vector file 
vector.shp and write to new vector output.shp
-
-for((i=0;i<256;++i));do if(($i<100));then echo "$i 1";else echo "$i 0";fi;done 
> code.txt; pkreclass -i input1.tif -o output.tif –code code.txt; # replace all 
values smaller than 100 with 1, all other values with 0
-
-\code
-pkreclass -i input1.tif -o output.tif $(for((i=0;i<256;++i));do 
if(($i<100));then echo -n " -c $i " " -r 1";else echo " -c $i " " -r 0";fi;done)
-\endcode
-same as previous but without temporary file 
-
+Classification using prior probabilities for each class. The priors are 
automatically normalized. The order in which the options -p are provide should 
respect the alphanumeric order of the class names (class 10 comes before 2...)
\ No newline at end of file
diff --git a/doc/examples_pkdiff.dox b/doc/examples_pkdiff.dox
index 1ff9d06..62d633c 100644
--- a/doc/examples_pkdiff.dox
+++ b/doc/examples_pkdiff.dox
@@ -1,12 +1,12 @@
 \section examples_pkdiff Examples of pkdiff
 \code
-pkdiff -i input.tif -r reference.tif
+pkdiff -i input.tif -ref reference.tif
 \endcode
 
 Check if two raster images are different (reports only if images are different 
or not)
 
 \code
-pkdiff -i classificationMap.tif -r referencePoints.shp -cm     
+pkdiff -i classificationMap.tif -ref referencePoints.shp -cm   
 \endcode
 
 Validate a classification map using points from a reference sample and report 
confusion matrix
diff --git a/doc/examples_pkextract.dox b/doc/examples_pkextract.dox
index 9e3b3b0..776e162 100644
--- a/doc/examples_pkextract.dox
+++ b/doc/examples_pkextract.dox
@@ -5,7 +5,7 @@ pkextract -i input.tif -s points.shp -o extracted.shp
 extract all bands from input.tif to extracted.shp at pixel locations defined 
in points.shp.
 
 \code
-pkextract -i input.tif -s points.shp -o extracted.shp -m mask.tif -f 255
+pkextract -i input.tif -s points.shp -o extracted.shp -m mask.tif -msknodata 
255
 \endcode
 extract all bands from input.tif to extracted.shp at pixel locations defined 
in points.shp that have not a value 255 in mask.tif
 
diff --git a/doc/examples_pkreclass.dox b/doc/examples_pkreclass.dox
index b55354c..4498924 100644
--- a/doc/examples_pkreclass.dox
+++ b/doc/examples_pkreclass.dox
@@ -9,10 +9,12 @@ pkreclass -i vector.shp -o output.shp -c FROM -r TO -n INFIELD
 \endcode
 replace FROM with TO in field INFIELD (of type string) in vector file 
vector.shp and write to new vector output.shp
 
-for((i=0;i<256;++i));do if(($i<100));then echo "$i 1";else echo "$i 0";fi;done 
> code.txt; pkreclass -i input1.tif -o output.tif –code code.txt; # replace all 
values smaller than 100 with 1, all other values with 0
+\code
+for((i=0;i<256;++i));do if(($i<100));then echo "$i 1";else echo "$i 0";fi;done 
> code.txt; pkreclass -i input1.tif -o output.tif –code code.txt
+\endcode
+replace all values smaller than 100 with 1, all other values with 0
 
 \code
 pkreclass -i input1.tif -o output.tif $(for((i=0;i<256;++i));do 
if(($i<100));then echo -n " -c $i " " -r 1";else echo " -c $i " " -r 0";fi;done)
 \endcode
-same as previous but without temporary file 
-
+same as previous but without temporary file
\ No newline at end of file
diff --git a/doc/mainpage.dox b/doc/mainpage.dox
index 0ebb610..44af058 100644
--- a/doc/mainpage.dox
+++ b/doc/mainpage.dox
@@ -59,7 +59,7 @@ sudo ldconfig
 
 Prerequisites (required)
 ------------------------
-packages to install before pktool
+packages to install before pktools
    - g++ (via repository)
    - make (via repository)
    - libgdal-dev http://trac.osgeo.org/gdal/wiki/BuildingOnUnix (or via 
repository)

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-grass/pktools.git

_______________________________________________
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel

Reply via email to