Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
abellgithub committed Mar 28, 2018
2 parents 1db5675 + d7d129d commit 9629032
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/apps/info.rst
Expand Up @@ -29,6 +29,7 @@ Processing is performed with stream mode if possible.
--stats Dump stats on all points (reads entire dataset)
--boundary Compute a hexagonal hull/boundary of dataset
--dimensions Dimensions on which to compute statistics
--enumerate Dimensions whose values should be enumerated
--schema Dump the schema
--pipeline-serialization Output filename for pipeline serialization
--summary Dump summary of the info
Expand Down
4 changes: 4 additions & 0 deletions kernels/InfoKernel.cpp
Expand Up @@ -140,6 +140,8 @@ void InfoKernel::addSwitches(ProgramArgs& args)
m_boundary);
args.add("dimensions", "Dimensions on which to compute statistics",
m_dimensions);
args.add("enumerate", "Dimensions whose values should be enumerated",
m_enumerate);
args.add("schema", "Dump the schema", m_showSchema);
args.add("pipeline-serialization", "Output filename for pipeline "
"serialization", m_pipelineFile);
Expand Down Expand Up @@ -310,6 +312,8 @@ void InfoKernel::setup(const std::string& filename)
Options filterOptions;
if (m_dimensions.size())
filterOptions.add({"dimensions", m_dimensions});
if (m_enumerate.size())
filterOptions.add({"enumerate", m_enumerate});
m_statsStage = &m_manager.makeFilter("filters.stats", *stage,
filterOptions);
stage = m_statsStage;
Expand Down
1 change: 1 addition & 0 deletions kernels/InfoKernel.hpp
Expand Up @@ -82,6 +82,7 @@ class PDAL_DLL InfoKernel : public Kernel
bool m_boundary;
std::string m_pointIndexes;
std::string m_dimensions;
std::string m_enumerate;
std::string m_queryPoint;
std::string m_pipelineFile;
bool m_showSummary;
Expand Down

0 comments on commit 9629032

Please sign in to comment.