Skip to content

Commit

Permalink
Merge pull request #443 from /issues/307-badinfo
Browse files Browse the repository at this point in the history
Add ptree nodes for all selected points.
  • Loading branch information
hobu committed Sep 9, 2014
2 parents 638e22b + 9f198e1 commit f879cb6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/kernel/Info.cpp
Expand Up @@ -238,7 +238,13 @@ void Info::dumpPoints(PointBufferPtr buf) const
}

boost::property_tree::ptree buffer_tree = pdal::utils::toPTree(*outbuf);
m_tree->add_child("point", buffer_tree.get_child("0"));
for (size_t i = 0; i < outbuf->size(); ++i)
{
std::string name = (std::string)"point " +
boost::lexical_cast<std::string>(points[i]);
std::string key = boost::lexical_cast<std::string>(i);
m_tree->add_child(name, buffer_tree.get_child(key));
}
}


Expand Down

0 comments on commit f879cb6

Please sign in to comment.