cockroachdb / cockroach

CockroachDB — the cloud native, distributed SQL database designed for high availability, effortless scale, and control over data placement.
https://www.cockroachlabs.com
Other
30.19k stars 3.82k forks source link

geo/geogfn: implement ST_GeoHash({geography,int4}) #48397

Closed otan closed 4 years ago

otan commented 4 years ago

Implement ST_GeoHash on arguments {geography,int4}, which should adopt PostGIS behaviour.

Observers: Please react to this issue if you need this functionality.

For Geography builtins, please do the following:

You can follow #48529 for an example PR.

The following additional guidance has been issued on implementing this function:

Feel free to add a dep on any library that supports geohashing of more than 12 bits.

:robot: This issue was synced with a spreadsheet by gsheets-to-github-issues by otan on 2021-02-21T20:41:45Z. Changes to titles, body and labels may be overwritten.

juanjcsr commented 4 years ago

Hi! I can work in this issue 😄.

I already implemented the geohash algorithm. I did some tests and I implemented a precision up to 20, similar to PostGIS.

Currently I am working on replicating PostGIS behaviour: when using a geometry larger than a point it should return a geohash with enough precision such that the given geometry is within the geohash box. I think I can finish it in the next couple of days and then submit the PR.

otan commented 4 years ago

Thanks! Let me know over slack if you have any issues.

On Sat, 20 Jun 2020, 10:02 am Juan Carlos, notifications@github.com wrote:

Hi! I can work in this issue 😄.

I already implemented the geohash algorithm. I did some tests and I implemented a precision up to 20, similar to PostGIS.

Currently I am working on replicating PostGIS behaviour: when using a geometry larger than a point it should return a geohash with enough precision such that the given geometry is within the geohash box. I think I can finish it in the next couple of days and then submit the PR.

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/cockroachdb/cockroach/issues/48397#issuecomment-647020993, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA32FQ76FDAZSSIS2SGMMRDRXTTSBANCNFSM4MZDK3WQ .