PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ 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:440
#define FLAGS_NDIMS(flags)
Definition liblwgeom.h:179
#define POLYHEDRALSURFACETYPE
Definition liblwgeom.h:114
void lwnotice(const char *fmt,...) __attribute__((format(printf
Write a notice out to the notice handler.
void void lwerror(const char *fmt,...) __attribute__((format(printf
Write a notice out to the error handler.
POINTARRAY ** rings
Definition liblwgeom.h:519
uint32_t nrings
Definition liblwgeom.h:524
lwflags_t flags
Definition liblwgeom.h:647
LWPOLY ** geoms
Definition liblwgeom.h:645
uint32_t ngeoms
Definition liblwgeom.h:650
uint8_t type
Definition liblwgeom.h:648
int32_t srid
Definition liblwgeom.h:646

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: