]> granicus.if.org Git - postgis/commitdiff
re-introduced G2P conversion profile for convexhull (was missing from previous patch)
authorSandro Santilli <strk@keybit.net>
Fri, 31 Dec 2004 10:35:33 +0000 (10:35 +0000)
committerSandro Santilli <strk@keybit.net>
Fri, 31 Dec 2004 10:35:33 +0000 (10:35 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@1204 b70326c6-7e19-0410-871a-916f4a2858ee

lwgeom/lwgeom_geos.c

index 3a625aa1d51242995457999847d76275a9e7474e..bcff87e2afe94fe5f1cfc589312c52eb1210a92b 100644 (file)
@@ -579,7 +579,13 @@ Datum convexhull(PG_FUNCTION_ARGS)
        //elog(NOTICE,"result: %s", GEOSasText(g3) ) ;
        GEOSSetSRID(g3, SRID);
 
+#ifdef PROFILE
+       profstart(PROF_G2P);
+#endif
        lwout = lwgeom_from_geometry(g3, TYPE_NDIMS(geom1->type) > 2);
+#ifdef PROFILE
+       profstop(PROF_G2P);
+#endif
        if (result == NULL)
        {
                GEOSdeleteGeometry(g1);