[Liblas-commits] r1083 - trunk/apps

liblas-commits at liblas.org liblas-commits at liblas.org
Sat Mar 7 13:44:00 EST 2009


Author: hobu
Date: Sat Mar  7 13:43:57 2009
New Revision: 1083
URL: http://liblas.org/changeset/1083

Log:
use GTIFPrint if we can to print geotiff info

Modified:
   trunk/apps/lascommon.c

Modified: trunk/apps/lascommon.c
==============================================================================
--- trunk/apps/lascommon.c	(original)
+++ trunk/apps/lascommon.c	Sat Mar  7 13:43:57 2009
@@ -3,7 +3,9 @@
 #include <string.h>
 #include <liblas.h>
 
-
+#ifdef HAVE_GEOTIFF
+#include <geotiff.h>
+#endif
 
 
 static const char * LASPointClassification [] = {
@@ -401,7 +403,13 @@
     LASSRSH pSRS = NULL;
     uint32_t nVLR = 0;
     int i = 0;
-    
+
+#ifdef HAVE_GEOTIFF
+    GTIF* pGTIF = NULL;
+#else
+    void* pGTIF = NULL;
+#endif    
+
     pszSignature = LASHeader_GetFileSignature(header);
     pszProjectId = LASHeader_GetProjectId(header);
     pszSystemId = LASHeader_GetSystemId(header);
@@ -409,9 +417,13 @@
     
     pSRS = LASHeader_GetSRS(header);
     pszProj4 = LASSRS_GetProj4(pSRS);
+    pGTIF = LASSRS_GetGTIF(pSRS);
     
     nVLR = LASHeader_GetRecordsCount(header);
-    
+ 
+ 
+
+       
     fprintf(file, "\n---------------------------------------------------------\n");
     fprintf(file, "  Header Summary\n");
     fprintf(file, "---------------------------------------------------------\n");
@@ -494,6 +506,8 @@
     fprintf(file, " Spatial Reference           %s\n",
                     pszProj4);
 
+    if (pGTIF) GTIFPrint(pGTIF, 0, 0);
+
     if (nVLR && !bSkipVLR) {
         
     fprintf(file, "\n---------------------------------------------------------\n");


More information about the Liblas-commits mailing list