PostGIS  2.2.7dev-r@@SVN_REVISION@@
void printLWPSURFACE ( LWPSURFACE psurf)

Definition at line 44 of file lwpsurface.c.

References LWPSURFACE::flags, FLAGS_NDIMS, LWPSURFACE::geoms, lwerror(), lwnotice(), LWPSURFACE::ngeoms, LWPOLY::nrings, POLYHEDRALSURFACETYPE, printPA(), LWPOLY::rings, LWPSURFACE::srid, and LWPSURFACE::type.

45 {
46  int i, j;
47  LWPOLY *patch;
48 
49  if (psurf->type != POLYHEDRALSURFACETYPE)
50  lwerror("printLWPSURFACE called with something else than a POLYHEDRALSURFACE");
51 
52  lwnotice("LWPSURFACE {");
53  lwnotice(" ndims = %i", (int)FLAGS_NDIMS(psurf->flags));
54  lwnotice(" SRID = %i", (int)psurf->srid);
55  lwnotice(" ngeoms = %i", (int)psurf->ngeoms);
56 
57  for (i=0; i<psurf->ngeoms; i++)
58  {
59  patch = (LWPOLY *) psurf->geoms[i];
60  for (j=0; j<patch->nrings; j++)
61  {
62  lwnotice(" RING # %i :",j);
63  printPA(patch->rings[j]);
64  }
65  }
66  lwnotice("}");
67 }
uint8_t flags
Definition: liblwgeom.h:553
void lwnotice(const char *fmt,...)
Write a notice out to the notice handler.
Definition: lwutil.c:61
#define POLYHEDRALSURFACETYPE
Definition: liblwgeom.h:82
LWPOLY ** geoms
Definition: liblwgeom.h:558
POINTARRAY ** rings
Definition: liblwgeom.h:441
int nrings
Definition: liblwgeom.h:439
uint8_t type
Definition: liblwgeom.h:552
void printPA(POINTARRAY *pa)
Definition: lwgeom_api.c:598
int32_t srid
Definition: liblwgeom.h:555
#define FLAGS_NDIMS(flags)
Definition: liblwgeom.h:136
int ngeoms
Definition: liblwgeom.h:556
void lwerror(const char *fmt,...)
Write a notice out to the error handler.
Definition: lwutil.c:74

Here is the call graph for this function: