[Liblas-commits] hg: output of a single point's XML is not valid XML #210

liblas-commits at liblas.org liblas-commits at liblas.org
Thu Feb 17 12:33:45 EST 2011


details:   http://hg.liblas.orghg/rev/04b6b1969b01
changeset: 2865:04b6b1969b01
user:      Howard Butler <hobu.inc at gmail.com>
date:      Thu Feb 17 11:33:38 2011 -0600
description:
output of a single point's XML is not valid XML #210

diffstat:

 apps/lasinfo.cpp |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 80bdbf66af2a -r 04b6b1969b01 apps/lasinfo.cpp
--- a/apps/lasinfo.cpp	Thu Feb 17 10:42:58 2011 -0600
+++ b/apps/lasinfo.cpp	Thu Feb 17 11:33:38 2011 -0600
@@ -204,7 +204,7 @@
                 liblas::Point const& p = reader.GetPoint();
                 if (output_xml) {
                     liblas::property_tree::ptree tree;
-                    tree = p.GetPTree();
+                    tree.add_child("points.point", p.GetPTree());
                     liblas::property_tree::write_xml(std::cout, tree);
                     exit(0);
                 } 


More information about the Liblas-commits mailing list