]> granicus.if.org Git - postgis/commitdiff
Enhance error messages in lwgeom_intersection and lwgeom_normalize
authorSandro Santilli <strk@keybit.net>
Fri, 6 Sep 2013 16:46:30 +0000 (16:46 +0000)
committerSandro Santilli <strk@keybit.net>
Fri, 6 Sep 2013 16:46:30 +0000 (16:46 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@11931 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/lwgeom_geos.c

index f627fa08b2d842f1ca9ccf6b4b4950ccd3c58eee..7f21eb4b44f8534d50be871f5eae8296a3d57115 100644 (file)
@@ -432,7 +432,7 @@ lwgeom_normalize(const LWGEOM *geom1)
        g1 = LWGEOM2GEOS(geom1);
        if ( 0 == g1 )   /* exception thrown at construction */
        {
-               lwerror("First argument geometry could not be converted to GEOS.");
+               lwerror("First argument geometry could not be converted to GEOS: %s", lwgeom_geos_errmsg);
                return NULL ;
        }
 
@@ -485,7 +485,7 @@ lwgeom_intersection(const LWGEOM *geom1, const LWGEOM *geom2)
        g1 = LWGEOM2GEOS(geom1);
        if ( 0 == g1 )   /* exception thrown at construction */
        {
-               lwerror("First argument geometry could not be converted to GEOS.");
+               lwerror("First argument geometry could not be converted to GEOS: %s", lwgeom_geos_errmsg);
                return NULL ;
        }