Skip to content

Commit

Permalink
Update method used to get dimensions.
Browse files Browse the repository at this point in the history
  • Loading branch information
connormanning committed Sep 11, 2014
1 parent 261e9bc commit c5e8127
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/kernel/Info.cpp
Expand Up @@ -273,19 +273,19 @@ void Info::dumpStats()
void Info::dump(PointContext ctx, PointBufferPtr buf)
{
if (m_showStats)
{
dumpStats();
}

if (m_pointIndexes.size())
{
dumpPoints(buf);
}

if (m_showSchema)
{
boost::property_tree::ptree schema;
std::string json; //= ctx.dimsJson();
std::stringstream strm;
strm << json;
boost::property_tree::read_json(strm, schema);

m_tree->add_child("schema", schema);
boost::property_tree::ptree dims(pdal::utils::toPTree(ctx));
m_tree->add_child("schema", dims);
}

if (m_showSDOPCMetadata)
Expand All @@ -298,7 +298,9 @@ void Info::dump(PointContext ctx, PointBufferPtr buf)
}

if (m_QueryPoint.size())
{
dumpQuery(buf);
}
}


Expand Down

0 comments on commit c5e8127

Please sign in to comment.