diff --git a/src/kernel/Info.cpp b/src/kernel/Info.cpp index 30d6fa256d..33ba0b91c7 100644 --- a/src/kernel/Info.cpp +++ b/src/kernel/Info.cpp @@ -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) @@ -298,7 +298,9 @@ void Info::dump(PointContext ctx, PointBufferPtr buf) } if (m_QueryPoint.size()) + { dumpQuery(buf); + } }