[ https://issues.apache.org/jira/browse/SEDONA-123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17558730#comment-17558730 ]
Jia Yu commented on SEDONA-123: ------------------------------- [~brianrice] Assigned > 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 > Assignee: Brian Rice > 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)