mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-15 20:24:07 +00:00
Remove polygon border checks
This commit is contained in:
parent
835b4d65b0
commit
cb766225ee
@ -377,11 +377,6 @@ bool BucketsPolygonIndex::find(const Point & point, size_t & id) const
|
||||
/** check for vertical edge, seem like never happens */
|
||||
if (l.x() == r.x())
|
||||
{
|
||||
if (l.x() == x && y >= l.y() && y <= r.y())
|
||||
{
|
||||
/** point is on the edge */
|
||||
update_result(found, id, polygon_id);
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
@ -396,12 +391,6 @@ bool BucketsPolygonIndex::find(const Point & point, size_t & id) const
|
||||
{
|
||||
continue;
|
||||
}
|
||||
if (edge_y == y)
|
||||
{
|
||||
/** point is on the edge */
|
||||
update_result(found, id, polygon_id);
|
||||
}
|
||||
|
||||
intersections.emplace_back(polygon_id);
|
||||
}
|
||||
pos >>= 1;
|
||||
|
Loading…
Reference in New Issue
Block a user