[
https://issues.apache.org/jira/browse/SEDONA-123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17558724#comment-17558724
]
Brian Rice commented on SEDONA-123:
-----------------------------------
I'm happy to work on this issue if that sounds alright
> ST_GeoGash function returns null for longitude with values in (90.0,180.0]
> --------------------------------------------------------------------------
>
> Key: SEDONA-123
> URL: https://issues.apache.org/jira/browse/SEDONA-123
> Project: Apache Sedona
> Issue Type: Bug
> Reporter: Itamar Landsman
> Priority: Major
>
> Whenever trying to extract the geohash value of a location where the
> longitude value is between 90 and 180, the function returns null instead of
> geohash string.
>
> Issue in the code:
> [lin this
> line|https://github.com/apache/incubator-sedona/blob/9fa36d71fc87c7a992402a7a8a89839de94be75f/sql/src/main/scala/org/apache/spark/sql/sedona_sql/expressions/geohash/GeometryGeoHashEncoder.scala#L27]
> replace the right most *gbox.getMaxX* with *gbox.getMaxY*
>
> Thanks!
--
This message was sent by Atlassian Jira
(v8.20.7#820007)