]> granicus.if.org Git - postgis/commitdiff
Slightly more useful error message from geohash
authorPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 7 Oct 2015 18:35:08 +0000 (18:35 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 7 Oct 2015 18:35:08 +0000 (18:35 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@14206 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/lwalgorithm.c

index 3340c2d348c9e909438c3644fccd420aa6774744..37a711536ab3243c21f50b2d6da29e5b4a0f6251 100644 (file)
@@ -835,7 +835,9 @@ char *lwgeom_geohash(const LWGEOM *lwgeom, int precision)
        /* Return error if we are being fed something outside our working bounds */
        if ( gbox.xmin < -180 || gbox.ymin < -90 || gbox.xmax > 180 || gbox.ymax > 90 )
        {
-               lwerror("Geohash requires inputs in decimal degrees.");
+               lwerror("Geohash requires inputs in decimal degrees, got (%g %g, %g %g).",
+                        gbox.xmin, gbox.ymin,
+                        gbox.xmax, gbox.ymax);
                return NULL;
        }