[postgis-devel] [PostGIS] #1818: C implementation for GeoHash input

PostGIS trac at osgeo.org
Tue May 15 07:16:44 PDT 2012


#1818: C implementation for GeoHash input
-----------------------+----------------------------------------------------
 Reporter:  darkpanda  |       Owner:  pramsey       
     Type:  patch      |      Status:  new           
 Priority:  medium     |   Milestone:  PostGIS Future
Component:  postgis    |     Version:  trunk         
 Keywords:             |  
-----------------------+----------------------------------------------------
 As discussed briefly at
 http://postgis.refractions.net/pipermail/postgis-
 devel/2012-April/020364.html
 , I took a couple of hours over the weekend and wrote up an
 implementation of some functions for converting from GeoHash strings
 to box2ds and geometries and such. I've attached a patch that adds a
 few functions for GeoHash input along with some regression tests. I
 haven't written up any documentation yet as this is really kind of a
 first-pass and my first attempt at a PostGIS patch, so have at it and
 see if it's relatively sane and I'll get to the documentation next.
 I've made the patch against the current svn head at r9732 via strk's
 github repository.

 The patch itself contains the following functions:

 ST_Box2dFromGeoHash(geohash text [, precision int4 default null])
 ST_GeomFromGeoHash(geohash text [, precision int4 default null])
 ST_PointFromGeoHash(geohash text [, precision int4 default null])

 Where the default precision is the full precision of the GeoHash.

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1818>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-devel mailing list