Skip to content

Commit

Permalink
issue #2879 - fix last operand in arcRadius for radius search
Browse files Browse the repository at this point in the history
should be cosine, not arccosine

Signed-off-by: Lee Surprenant <lmsurpre@us.ibm.com>
  • Loading branch information
lmsurpre committed Oct 21, 2021
1 parent 6fb6e36 commit c200330
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public void buildQueryForBoundingRadius(WhereFragment whereClauseSegment, String
.mult()
.cos(col(paramAlias, LATITUDE_VALUE))
.mult()
.acos(col(paramAlias, LONGITUDE_VALUE));
.cos(col(paramAlias, LONGITUDE_VALUE));

whereClauseSegment.leftParen()
.col(paramAlias, LATITUDE_VALUE).lte().bind(boundingRadius.getLatitude())
Expand Down

0 comments on commit c200330

Please sign in to comment.