surpriseMePolygon and createRegularPolygon in test util class returns invalid polygon
Open
type:bug
- Dominant language
- Java
- Stars
- 3.6k
- Forks
- 1.4k
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 88
Description
### Description
https://github.com/apache/lucene/blob/main/lucene/test-framework/src/java/org/apache/lucene/tests/geo/ShapeTestUtil.java
surpriseMePolygon and createRegularPolygon returns invalid polygon where three or more points having same value due to type casting from double to float.
### Version and environment details
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.