Skip to content

Commit

Permalink
bugfix in --no-surface-area
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickbr committed May 16, 2024
1 parent 501d359 commit c2711d3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/spatialjoin/Sweeper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,9 @@ void Sweeper::add(const I32Polygon& poly, const std::string& gid,
if (subid > 0)
multiAdd(gid, box.getLowerLeft().getX(), box.getUpperRight().getX());

if (!_cfg.useArea) areaSize = 0;

size_t id = _areaCache.add({spoly, box, gid, subid, areaSize, outerAreaSize,
boxIds, cutouts, obb, inner, outer});
size_t id = _areaCache.add({spoly, box, gid, subid, areaSize,
_cfg.useArea ? outerAreaSize : 0, boxIds, cutouts,
obb, inner, outer});

diskAdd({id, box.getLowerLeft().getY(), box.getUpperRight().getY(),
box.getLowerLeft().getX(), false, POLYGON, areaSize, box45});
Expand Down

0 comments on commit c2711d3

Please sign in to comment.