]> granicus.if.org Git - postgis/commitdiff
Fix unsupported message
authorSandro Santilli <strk@keybit.net>
Mon, 15 Feb 2010 22:31:11 +0000 (22:31 +0000)
committerSandro Santilli <strk@keybit.net>
Mon, 15 Feb 2010 22:31:11 +0000 (22:31 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@5245 b70326c6-7e19-0410-871a-916f4a2858ee

postgis/lwgeom_geos.c

index 602652e0bad886b3080fba32f83d84876c5dc53a..9a3b6698b992b7c41cd0bb3a3098a55c3d66e9bf 100644 (file)
@@ -4066,8 +4066,8 @@ lwpoly_make_valid(LWPOLY *poly)
                lwpoly_release(poly);
 
                /* Make a POLYGON EMPTY or  COLLECTION EMPTY ? */
-               /* COLLECTION EMPTY */
 #if 0
+               /* COLLECTION EMPTY */
                ret = (LWGEOM*)lwcollection_construct_empty(poly->SRID,
                        TYPE_HASZ(poly->type), TYPE_HASM(poly->type));
 #else
@@ -4386,7 +4386,7 @@ Datum st_makevalid(PG_FUNCTION_ARGS)
                char* tmp = GEOSGeomType(geosgeom);
                char* typname = pstrdup(tmp);
                GEOSFree(tmp);
-               lwerror("ST_MakeValid: doesn't support geometry type: %d",
+               lwerror("ST_MakeValid: doesn't support geometry type: %s",
                        typname);
                break;
        }