[postgis-devel] GeoHash decoding function

Paul Ramsey pramsey at opengeo.org
Tue Apr 24 10:01:50 PDT 2012


On Tue, Apr 24, 2012 at 8:49 AM, J Smith <dark.panda+lists at gmail.com> wrote:
> G'day list.
>
> I've been using GeoHashes recently for a project in combination with
> PostGIS and was wondering why there's a PostGIS function for encoding
> a geometry to a GeoHash but no function for decoding a GeoHash into,
> say, a bbox or envelope or something. I'd be interested in such a
> function myself, as the project I'm working on involves some geocoding
> using GeoHashes, basically, and it would be a lot easier to be able to
> work with the GeoHashes directly in SQL rather than outside of my
> queries.
>
> I'm planning on writing an equivalent of ST_GeoHash_decode or
> something to that effect in a procedural language, although if there
> was any real interest I could look into implementing it in C for
> inclusion into PostGIS itself.

If you provide ST_GeomFromGeoHash() in C I dont' know why we wouldn't
include it.

P.

>
> Cheers
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-devel



More information about the postgis-devel mailing list