[Liblas-commits] hg: return an empty string if we have no geotiff

liblas-commits at liblas.org liblas-commits at liblas.org
Mon Aug 23 12:18:35 EDT 2010


changeset 6a42963901d9 in /Volumes/Data/www/liblas.org/hg
details: http://hg.liblas.orghg?cmd=changeset;node=6a42963901d9
summary: return an empty string if we have no geotiff

diffstat:

 src/lasspatialreference.cpp |  4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diffs (21 lines):

diff -r 415acb66b9f6 -r 6a42963901d9 src/lasspatialreference.cpp
--- a/src/lasspatialreference.cpp	Mon Aug 23 10:58:14 2010 -0500
+++ b/src/lasspatialreference.cpp	Mon Aug 23 11:18:04 2010 -0500
@@ -670,6 +670,9 @@
 
 std::string SpatialReference::GetGTIFFText() const
 {
+#ifndef HAVE_LIBGEOTIFF
+    return std::string("");
+#else    
     std::string filename;
     // FIXME: How do we do this with an ostream instead of having to 
     // use temporary FILE* ?  -- hobu
@@ -731,6 +734,7 @@
     free(data);
     fclose(f2);
     return output;
+#endif
 }
 
 } // namespace liblas


More information about the Liblas-commits mailing list