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

Definition at line 57 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.

58 {
59  int i, j;
60  LWPOLY *patch;
61 
62  if (psurf->type != POLYHEDRALSURFACETYPE)
63  lwerror("printLWPSURFACE called with something else than a POLYHEDRALSURFACE");
64 
65  lwnotice("LWPSURFACE {");
66  lwnotice(" ndims = %i", (int)FLAGS_NDIMS(psurf->flags));
67  lwnotice(" SRID = %i", (int)psurf->srid);
68  lwnotice(" ngeoms = %i", (int)psurf->ngeoms);
69 
70  for (i=0; i<psurf->ngeoms; i++)
71  {
72  patch = (LWPOLY *) psurf->geoms[i];
73  for (j=0; j<patch->nrings; j++)
74  {
75  lwnotice(" RING # %i :",j);
76  printPA(patch->rings[j]);
77  }
78  }
79  lwnotice("}");
80 }
uint8_t flags
Definition: liblwgeom.h:568
void lwnotice(const char *fmt,...)
Write a notice out to the notice handler.
Definition: lwutil.c:89
#define POLYHEDRALSURFACETYPE
Definition: liblwgeom.h:96
LWPOLY ** geoms
Definition: liblwgeom.h:573
POINTARRAY ** rings
Definition: liblwgeom.h:456
int nrings
Definition: liblwgeom.h:454
uint8_t type
Definition: liblwgeom.h:567
void printPA(POINTARRAY *pa)
Definition: lwgeom_api.c:611
int32_t srid
Definition: liblwgeom.h:570
#define FLAGS_NDIMS(flags)
Definition: liblwgeom.h:151
int ngeoms
Definition: liblwgeom.h:571
void lwerror(const char *fmt,...)
Write a notice out to the error handler.
Definition: lwutil.c:102

Here is the call graph for this function: