Skip to content

Commit

Permalink
Fix logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
abellgithub committed Apr 8, 2021
1 parent d02d618 commit 66424f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pdal/Stage.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -396,8 +396,8 @@ class PDAL_DLL Stage
Potentially split a point view into keeps and skips based on a where clause.
\param view Point view to split.
\param keep PointView to hold the kept points.
\param skip PointView to hold the skipped points.
\param keep PointView to hold the kept points.
\param skip PointView to hold the skipped points.
*/
void splitView(const PointViewPtr& view, PointViewPtr& keep, PointViewPtr& skip);

Expand Down
4 changes: 3 additions & 1 deletion pdal/Streamable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,9 @@ void Streamable::execute(StreamPointTable& table,
for (PointId idx = 0; idx < pointLimit; idx++)
{
point.setPointId(idx);
if (table.skip(idx) || (!where || !where->eval(point)))
if (table.skip(idx))
continue;
if (where && !where->eval(point))
continue;
if (!s->processOne(point))
table.setSkip(idx);
Expand Down

0 comments on commit 66424f5

Please sign in to comment.