You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The multipolygons are simple composed of one axis-aligned rectangle each.
Trying to avoid the segfault from #58612, I clamped the coordinates, which resulted in rectangles with zero area in the index.
This led to 'dictGet/dictHas` queries returning nothing for points clearly in polygons that were not the clamped.
In other words, zero-area polygons in the index lead to incorrect query results.
Describe what's wrong
A polygon dictionary with latitudes and longitudes is created with
The multipolygons are simple composed of one axis-aligned rectangle each.
Trying to avoid the segfault from #58612, I clamped the coordinates, which resulted in rectangles with zero area in the index.
This led to 'dictGet/dictHas` queries returning nothing for points clearly in polygons that were not the clamped.
In other words, zero-area polygons in the index lead to incorrect query results.
For example, with
one gets
Other elements that points to a bug in the index creation:
POLYGON_SIMPLE
implementation, the queries are correctly answeredpointInPolygon
result above is also correctPOLYGON_INDEX_EACH
, I even get clearly erroneous answers with points not belonging to the polygon.Does it reproduce on recent release?
This is present on version 23.12.2.59 (official build), build id: 7F4C1A822F9C67A4D137A58F9A95BD4B0F1B6A8A, git hash: 17ab210)
How to reproduce
I can try to create a minimal reproducible example.
Expected behavior
The text was updated successfully, but these errors were encountered: