]> granicus.if.org Git - postgis/commitdiff
Add more debug prints
authorSandro Santilli <strk@keybit.net>
Wed, 9 Apr 2014 17:02:10 +0000 (17:02 +0000)
committerSandro Santilli <strk@keybit.net>
Wed, 9 Apr 2014 17:02:10 +0000 (17:02 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@12446 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/lwin_wkb.c

index 1a873526f42395ebed2e7d2fb0405a30752f4c2c..cfd887f03c1aaf44f5a196e203f026e4f6327463 100644 (file)
@@ -318,6 +318,9 @@ static POINTARRAY* ptarray_from_wkb_state(wkb_parse_state *s)
 
        /* Calculate the size of this point array. */
        npoints = integer_from_wkb_state(s);
+
+       LWDEBUGF(4,"Pointarray has %d points", npoints);
+
        if( s->has_z ) ndims++;
        if( s->has_m ) ndims++;
        pa_size = npoints * ndims * WKB_DOUBLE_SIZE;
@@ -465,6 +468,8 @@ static LWPOLY* lwpoly_from_wkb_state(wkb_parse_state *s)
        uint32_t nrings = integer_from_wkb_state(s);
        int i = 0;
        LWPOLY *poly = lwpoly_construct_empty(s->srid, s->has_z, s->has_m);
+
+       LWDEBUGF(4,"Polygon has %d rings", nrings);
        
        /* Empty polygon? */
        if( nrings == 0 )
@@ -595,6 +600,8 @@ static LWCOLLECTION* lwcollection_from_wkb_state(wkb_parse_state *s)
        LWCOLLECTION *col = lwcollection_construct_empty(s->lwtype, s->srid, s->has_z, s->has_m);
        LWGEOM *geom = NULL;
        int i;
+
+       LWDEBUGF(4,"Collection has %d components", ngeoms);
        
        /* Empty collection? */
        if ( ngeoms == 0 )