Opened 9 years ago

Last modified 9 years ago

#3313 closed defect

Where is money town? ST_PointGeoHash regression differnce between 2.1.8 and 2.2.0 — at Initial Version

Reported by: robe Owned by: pramsey
Priority: medium Milestone: PostGIS 2.2.0
Component: postgis Version: master
Keywords: Cc:

Description

Which one of these is the right answer or are they both wrong?

SELECT  ST_AsText(ST_PointFromGeoHash('monkey')) As output,
  ST_GeoHash(ST_PointFromGeoHash('monkey'));

In:

POSTGIS="2.2.0dev r14180" GEOS="3.5.0-CAPI-1.9.0 r4090" PROJ="Rel. 4.9.1, 04 March 2015" GDAL="GDAL 2.0.1, released 2015/09/15" LIBXML="2.7.8" LIBJSON="0.12" RASTER

           output            |      st_geohash
-----------------------------+----------------------
 POINT(54.140625 -21.796875) | mhns0000000000000000
(1 row)


POSTGIS="2.1.8 r13780" GEOS="3.5.0-CAPI-1.9.0 r4088" PROJ="Rel. 4.8.0, 6 March 2012" GDAL="GDAL 1.11.1, released 2014/09/24" LIBXML="2.7.8" LIBJSON="UNKNOWN" RASTER

                  output                   |      st_geohash
-------------------------------------------+----------------------
 POINT(53.9593505859375 -44.1732788085938) | m0nkeys0000000000000
(1 row)

I have to say I find the 2.1.8 answer more visually appealing

Change History (0)

Note: See TracTickets for help on using tickets.