[Liblas-commits] r1057 - trunk/src
liblas-commits at liblas.org
liblas-commits at liblas.org
Fri Feb 20 14:42:44 EST 2009
Author: hobu
Date: Fri Feb 20 14:42:44 2009
New Revision: 1057
URL: http://liblas.org/changeset/1057
Log:
we should fetch the m_gtiff on Set* methods to create it
Modified:
trunk/src/lassrs.cpp
Modified: trunk/src/lassrs.cpp
==============================================================================
--- trunk/src/lassrs.cpp (original)
+++ trunk/src/lassrs.cpp Fri Feb 20 14:42:44 2009
@@ -371,6 +371,7 @@
void LASSRS::SetWKT(std::string const& v)
{
+ if (! m_gtiff ) GetGTIF();
#ifdef HAVE_GDAL
@@ -441,6 +442,8 @@
void LASSRS::SetProj4(std::string const& v)
{
+ if (! m_gtiff ) GetGTIF();
+
#ifdef HAVE_GDAL
char* poWKT = NULL;
@@ -468,7 +471,6 @@
throw std::runtime_error("The geotiff keys could not be written");
}
-
GTIFDefn defn;
if (m_gtiff && GTIFGetDefn(m_gtiff, &defn))
More information about the Liblas-commits
mailing list