PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ printLWPSURFACE()

void printLWPSURFACE ( LWPSURFACE psurf)

Definition at line 57 of file lwpsurface.c.

58 {
59  uint32_t 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 }
void printPA(POINTARRAY *pa)
Definition: lwgeom_api.c:506
#define FLAGS_NDIMS(flags)
Definition: liblwgeom.h:152
#define POLYHEDRALSURFACETYPE
Definition: liblwgeom.h:97
void lwerror(const char *fmt,...)
Write a notice out to the error handler.
Definition: lwutil.c:190
void lwnotice(const char *fmt,...)
Write a notice out to the notice handler.
Definition: lwutil.c:177
POINTARRAY ** rings
Definition: liblwgeom.h:460
uint32_t nrings
Definition: liblwgeom.h:458
LWPOLY ** geoms
Definition: liblwgeom.h:577
uint32_t ngeoms
Definition: liblwgeom.h:575
uint8_t type
Definition: liblwgeom.h:571
int32_t srid
Definition: liblwgeom.h:574
uint8_t flags
Definition: liblwgeom.h:572
unsigned int uint32_t
Definition: uthash.h:78

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

Here is the call graph for this function: