Skip to content

Commit

Permalink
Add ready() back for streaming support
Browse files Browse the repository at this point in the history
  • Loading branch information
chambbj committed May 10, 2021
1 parent a3f6445 commit 5a47233
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions filters/HeadFilter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ void HeadFilter::addArgs(ProgramArgs& args)
"to skip from the beginning.", m_invert, false);
}

void HeadFilter::ready(PointTableRef table)
{
m_index = 0;
}

bool HeadFilter::processOne(PointRef& point)
{

Expand Down
1 change: 1 addition & 0 deletions filters/HeadFilter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ class PDAL_DLL HeadFilter : public Filter, public Streamable
virtual void addArgs(ProgramArgs& args);
virtual bool processOne(PointRef& point);
virtual PointViewSet run(PointViewPtr view);
virtual void ready(PointTableRef table);

};

Expand Down

0 comments on commit 5a47233

Please sign in to comment.