PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ printLWPSURFACE()

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:569
void lwnotice(const char *fmt,...)
Write a notice out to the notice handler.
Definition: lwutil.c:177
#define POLYHEDRALSURFACETYPE
Definition: liblwgeom.h:97
LWPOLY ** geoms
Definition: liblwgeom.h:574
POINTARRAY ** rings
Definition: liblwgeom.h:457
int nrings
Definition: liblwgeom.h:455
uint8_t type
Definition: liblwgeom.h:568
void printPA(POINTARRAY *pa)
Definition: lwgeom_api.c:472
int32_t srid
Definition: liblwgeom.h:571
#define FLAGS_NDIMS(flags)
Definition: liblwgeom.h:152
int ngeoms
Definition: liblwgeom.h:572
void lwerror(const char *fmt,...)
Write a notice out to the error handler.
Definition: lwutil.c:190
Here is the call graph for this function: