[Liblas-commits] hg-main-tree: dump wkt info

liblas-commits at liblas.org liblas-commits at liblas.org
Wed Apr 27 14:15:25 EDT 2011


details:   http://hg.libpc.orghg-main-tree/rev/f51e325cf656
changeset: 678:f51e325cf656
user:      Michael P. Gerlek <mpg at flaxen.com>
date:      Wed Apr 27 11:15:17 2011 -0700
description:
dump wkt info

diffstat:

 apps/pcinfo.cpp |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (21 lines):

diff -r 9f1cbfe77af3 -r f51e325cf656 apps/pcinfo.cpp
--- a/apps/pcinfo.cpp	Wed Apr 27 11:14:50 2011 -0700
+++ b/apps/pcinfo.cpp	Wed Apr 27 11:15:17 2011 -0700
@@ -111,12 +111,14 @@
         return 1;
     }
 
-    boost::uint64_t numPoints = reader->getNumPoints();
+    const boost::uint64_t numPoints = reader->getNumPoints();
+    const SpatialReference& srs = reader->getSpatialReference();
+
+    std::cout << numPoints << " points\n";
+    std::cout << "WKT: " << srs.getWKT() << "\n";
 
     delete reader;
 
-    std::cout << numPoints << " points\n";
-
     return 0;
 }
 


More information about the Liblas-commits mailing list