Skip to content

Commit

Permalink
exact test for invalid-range encoded multi-OUT events
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickbr committed May 10, 2024
1 parent a0a97c7 commit 783f078
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/spatialjoin/Sweeper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ void Sweeper::multiOut(size_t t, const std::string& gidA) {
void Sweeper::flush() {
LOG(INFO) << _multiIds.size() << " multi geometries";
for (size_t i = 0; i < _multiIds.size(); i++) {
diskAdd({i, 2, 1, _multiLeftX[i] - 1, false, POINT, 0.0, {}});
diskAdd({i, 1, 0, _multiLeftX[i] - 1, false, POINT, 0.0, {}});
}

ssize_t r = write(_file, _outBuffer, _obufpos);
Expand Down Expand Up @@ -525,7 +525,7 @@ void Sweeper::sweep() {
auto cur = reinterpret_cast<const BoxVal*>(buf + i);
jj++;

if (!cur->out && cur->loY > cur->upY) {
if (!cur->out && cur->loY == 1 && cur->upY == 0 && cur->type == POINT) {
// special multi-IN
_activeMultis.insert(cur->id);
} else if (!cur->out) {
Expand Down

0 comments on commit 783f078

Please sign in to comment.