Skip to content

Commit

Permalink
reverse comparison operators in fully within test (feature_builder.…
Browse files Browse the repository at this point in the history
…hpp) [fixes #95]
  • Loading branch information
artemp committed Feb 19, 2019
1 parent 4f5f01b commit 942a560
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/feature_builder.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,10 @@ struct polygon_handler
if (!skip_ && ring_.size() > 3)
{
// only clip if not fully within bbox
if (bbox_.min.x >= extent_.min.x &&
bbox_.max.x <= extent_.max.x &&
bbox_.min.y >= extent_.min.y &&
bbox_.max.y <= extent_.max.y)
if (bbox_.min.x <= extent_.min.x &&
bbox_.max.x >= extent_.max.x &&
bbox_.min.y <= extent_.min.y &&
bbox_.max.y >= extent_.max.y)
{
builder_.add_ring(static_cast<unsigned>(ring_.size()));
for (auto const& pt : ring_)
Expand Down

0 comments on commit 942a560

Please sign in to comment.