Skip to content

Commit

Permalink
this seems to be needed for my StatsFilter problem - need to investig…
Browse files Browse the repository at this point in the history
…ate further
  • Loading branch information
mpgerlek committed May 1, 2015
1 parent 1f6d962 commit f070084
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions include/pdal/BufferReader.hpp
Expand Up @@ -49,6 +49,14 @@ class PDAL_DLL BufferReader : public pdal::Reader
void addView(const PointViewPtr& view)
{ m_views.insert(view); }
std::string getName() const { return "readers.buffer"; }

virtual void addDimensions(PointLayoutPtr layout)
{
for (auto v : m_views) {
Dimension::IdList d = v->dims();
layout->registerDims(d);
}
}

private:
PointViewSet m_views;
Expand Down

0 comments on commit f070084

Please sign in to comment.