mirror of
https://git.osgeo.org/gitea/postgis/postgis
synced 2024-10-25 01:22:47 +00:00
Added or updated debugging statements.
git-svn-id: http://svn.osgeo.org/postgis/trunk@2633 b70326c6-7e19-0410-871a-916f4a2858ee
This commit is contained in:
parent
af64cba494
commit
8656724822
|
@ -31,7 +31,7 @@ lwcollection_construct(unsigned int type, int SRID, BOX2DFLOAT4 *bbox,
|
|||
#endif
|
||||
|
||||
#ifdef PGIS_DEBUG_CALLS
|
||||
lwnotice("lwcollection_construct called.");
|
||||
lwnotice("lwcollection_construct called with %d, %d, %p, %d, %p.", type, SRID, bbox, ngeoms, geoms);
|
||||
#endif
|
||||
|
||||
hasz = 0;
|
||||
|
|
|
@ -220,6 +220,9 @@ lwgeom_reverse(LWGEOM *lwgeom)
|
|||
int
|
||||
lwgeom_compute_box2d_p(LWGEOM *lwgeom, BOX2DFLOAT4 *buf)
|
||||
{
|
||||
#ifdef PGIS_DEBUG_CALLS
|
||||
lwnotice("lwgeom_compute_box2d_p called of %p of type %d.", lwgeom, TYPE_GETTYPE(lwgeom->type));
|
||||
#endif
|
||||
switch(TYPE_GETTYPE(lwgeom->type))
|
||||
{
|
||||
case POINTTYPE:
|
||||
|
@ -373,6 +376,9 @@ lwgeom_release(LWGEOM *lwgeom)
|
|||
LWGEOM *
|
||||
lwgeom_clone(const LWGEOM *lwgeom)
|
||||
{
|
||||
#ifdef PGIS_DEBUG_CALLS
|
||||
lwnotice("lwgeom_clone called with %p, %d", lwgeom, TYPE_GETTYPE(lwgeom->type));
|
||||
#endif
|
||||
switch(TYPE_GETTYPE(lwgeom->type))
|
||||
{
|
||||
case POINTTYPE:
|
||||
|
|
|
@ -334,6 +334,9 @@ lwline_compute_box2d_p(LWLINE *line, BOX2DFLOAT4 *box)
|
|||
LWLINE *
|
||||
lwline_clone(const LWLINE *g)
|
||||
{
|
||||
#ifdef PGIS_DEBUG_CALLS
|
||||
lwnotice("lwline_clone called with %p", g);
|
||||
#endif
|
||||
LWLINE *ret = lwalloc(sizeof(LWLINE));
|
||||
memcpy(ret, g, sizeof(LWLINE));
|
||||
if ( g->bbox ) ret->bbox = box2d_clone(g->bbox);
|
||||
|
|
|
@ -303,7 +303,9 @@ lwgeom_size_poly(const uchar *serialized_poly)
|
|||
loc +=4;
|
||||
result +=4;
|
||||
|
||||
|
||||
#ifdef PGIS_DEBUG
|
||||
lwnotice("lwgeom_size_poly contains %d rings", nrings);
|
||||
#endif
|
||||
for (t =0;t<nrings;t++)
|
||||
{
|
||||
/* read in a single ring and make a PA */
|
||||
|
@ -327,6 +329,10 @@ lwgeom_size_poly(const uchar *serialized_poly)
|
|||
result += 32*npoints;
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef PGIS_DEBUG
|
||||
lwnotice("lwgeom_size_poly returning %d", result);
|
||||
#endif
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue