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 83590bffe4c5d1ac9ae69a0fe22fd98596d255bb Author: Pieter Kempeneers <kempe...@gmail.com> Date: Mon Nov 4 22:26:52 2013 +0100 pkfillnodata: changed default value for max distance from 3 to 0 (infinity) --- ChangeLog | 2 ++ src/apps/pkfillnodata.cc | 15 +++++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2951e1c..baf7b33 100755 --- a/ChangeLog +++ b/ChangeLog @@ -135,3 +135,5 @@ version 2.4.2 make histogram more similar to pkstat with support of relative option - pklas2img correct for wrong include path for FileReaderLas.h (lasclasses instead of fileclasses) + - pkfillnodata + default maximum distance changed from 3 to 0 (infinity) diff --git a/src/apps/pkfillnodata.cc b/src/apps/pkfillnodata.cc index 5f7a84c..ab87dc8 100644 --- a/src/apps/pkfillnodata.cc +++ b/src/apps/pkfillnodata.cc @@ -27,11 +27,11 @@ extern "C" { #include "base/Optionpk.h" int main(int argc,char **argv) { - Optionpk<std::string> input_opt("i", "input", "Input image file (WARNING: will be overwritten with output!", ""); - Optionpk<int> band_opt("b", "band", "band(s) to process (Default is -1: process all bands)", -1); - Optionpk<std::string> mask_opt("m", "mask", "Mask band indicating pixels to be interpolated (zero valued) ", ""); - Optionpk<std::string> output_opt("o", "output", "Output image file", ""); - Optionpk<double> distance_opt("d", "distance", "Maximum number of pixels to search in all directions to find values to interpolate from (default is 3", 3); + Optionpk<std::string> input_opt("i", "input", "Input image file (WARNING: will be overwritten with output!"); + Optionpk<int> band_opt("b", "band", "band(s) to process (Default is -1: process all bands)"); + Optionpk<std::string> mask_opt("m", "mask", "Mask band indicating pixels to be interpolated (zero valued) "); + Optionpk<std::string> output_opt("o", "output", "Output image file"); + Optionpk<double> distance_opt("d", "distance", "Maximum number of pixels to search in all directions to find values to interpolate from", 0); Optionpk<int> iteration_opt("it", "iteration", "Number of 3x3 smoothing filter passes to run (default 0)", 0); Optionpk<short> verbose_opt("v", "verbose", "verbose", 0); @@ -54,6 +54,9 @@ int main(int argc,char **argv) { exit(0);//help was invoked, stop processing } + assert(input_opt.size()); + assert(mask_opt.size()); + assert(output_opt.size()); GDALAllRegister(); GDALDataset *gds_input; if(verbose_opt[0]) @@ -90,7 +93,7 @@ int main(int argc,char **argv) { GDALDataset *gds_out; gds_out=(GDALDataset *) GDALOpen(output_opt[0].c_str(), GA_Update); - if(band_opt[0]<0){ + if(band_opt.empty()){ band_opt.clear(); for(int iband=0;iband<gds_input->GetRasterCount();++iband) band_opt.push_back(iband); -- 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