[pktools] 24/375: VERSION in ImgWriterGdal.cc
Bas Couwenberg
sebastic at xs4all.nl
Wed Dec 3 21:53:54 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 d079041b4dd889ad282c58230a525faccf988871
Author: Pieter Kempeneers <kempenep at gmail.com>
Date: Fri Dec 7 17:15:55 2012 +0100
VERSION in ImgWriterGdal.cc
---
src/imageclasses/ImgWriterGdal.cc | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/src/imageclasses/ImgWriterGdal.cc b/src/imageclasses/ImgWriterGdal.cc
index 06e9cb2..3c79d22 100644
--- a/src/imageclasses/ImgWriterGdal.cc
+++ b/src/imageclasses/ImgWriterGdal.cc
@@ -22,6 +22,11 @@ along with pktools. If not, see <http://www.gnu.org/licenses/>.
#include <time.h>
#include "ogr_spatialref.h"
#include "ImgWriterGdal.h"
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
//---------------------------------------------------------------------------
ImgWriterGdal::ImgWriterGdal(void)
: m_gds(NULL), m_isGeoRef(false), m_ncol(0), m_nrow(0), m_nband(0)
@@ -127,7 +132,10 @@ void ImgWriterGdal::setCodec(const ImgReaderGdal& imgSrc){
}
m_gds->SetMetadata(imgSrc.getMetadata() );
m_gds->SetMetadataItem( "TIFFTAG_DOCUMENTNAME", m_filename.c_str());
- m_gds->SetMetadataItem( "TIFFTAG_SOFTWARE", "pktools v2.0 by Pieter Kempeneers");
+ std::string versionString="pktools ";
+ versionString+=VERSION;
+ versionString+=" by Pieter Kempeneers";
+ m_gds->SetMetadataItem( "TIFFTAG_SOFTWARE", versionString.c_str());
time_t rawtime;
time ( &rawtime );
--
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