[pktools] 60/375: removed debug info from pkeditogr
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 76cdaafe18560094d14923595a0db0538b6ef59b
Author: user <user at osgeolive.(none)>
Date: Thu Feb 14 00:08:25 2013 +0100
removed debug info from pkeditogr
---
src/apps/pkclassify_svm.cc | 9 +++++++--
src/apps/pkeditogr.cc | 6 ------
2 files changed, 7 insertions(+), 8 deletions(-)
diff --git a/src/apps/pkclassify_svm.cc b/src/apps/pkclassify_svm.cc
index 26d108f..be4a92a 100644
--- a/src/apps/pkclassify_svm.cc
+++ b/src/apps/pkclassify_svm.cc
@@ -1172,8 +1172,13 @@ int main(int argc, char *argv[])
imgWriterOgr.close();
}
}
- if(active_opt.size())
- activeWriter.close();
+ try{
+ if(active_opt.size())
+ activeWriter.close();
+ }
+ catch(string errorString){
+ std::cerr << "Error: errorString" << std::endl;
+ }
for(int ibag=0;ibag<nbag;++ibag){
// svm_destroy_param[ibag](¶m[ibag]);
diff --git a/src/apps/pkeditogr.cc b/src/apps/pkeditogr.cc
index 09db8d8..9fd62f2 100644
--- a/src/apps/pkeditogr.cc
+++ b/src/apps/pkeditogr.cc
@@ -147,20 +147,14 @@ int main(int argc, char *argv[])
OGRFeature::DestroyFeature( poDstFeature );
}
long int fid=poFeature->GetFID();
- //test
- std::cout << "fid: " << fid << std::endl;
poDstFeature->SetFID( poFeature->GetFID() );
for(int ifeature=0;ifeature<setfeature_opt.size();++ifeature){
- //test
- std::cout << "set feature " << setfeature_opt[ifeature] << std::endl;
if(fid==setfeature_opt[ifeature]){
switch(poDstFeature->GetFieldDefnRef(fid)->GetType()){
case(OFTReal):
poDstFeature->SetField(setname_opt[ifeature].c_str(),string2type<float>(setvalue_opt[ifeature]));
break;
case(OFTInteger):
- //test
- std::cout << "set field " << setname_opt[ifeature] << " to " << setvalue_opt[ifeature] << std::endl;
poDstFeature->SetField(setname_opt[ifeature].c_str(),string2type<int>(setvalue_opt[ifeature]));
break;
case(OFTString):
--
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