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

◆ printLWTIN()

void printLWTIN ( LWTIN tin)
extern

Definition at line 57 of file lwtin.c.

58{
59 uint32_t i;
60 LWTRIANGLE *triangle;
61
62 if (tin->type != TINTYPE)
63 lwerror("printLWTIN called with something else than a TIN");
64
65 lwnotice("LWTIN {");
66 lwnotice(" ndims = %i", (int)FLAGS_NDIMS(tin->flags));
67 lwnotice(" SRID = %i", (int)tin->srid);
68 lwnotice(" ngeoms = %i", (int)tin->ngeoms);
69
70 for (i=0; i<tin->ngeoms; i++)
71 {
72 triangle = (LWTRIANGLE *) tin->geoms[i];
73 printPA(triangle->points);
74 }
75 lwnotice("}");
76}
void printPA(POINTARRAY *pa)
Definition lwgeom_api.c:440
#define TINTYPE
Definition liblwgeom.h:116
#define FLAGS_NDIMS(flags)
Definition liblwgeom.h:179
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.
uint32_t ngeoms
Definition liblwgeom.h:664
int32_t srid
Definition liblwgeom.h:660
uint8_t type
Definition liblwgeom.h:662
lwflags_t flags
Definition liblwgeom.h:661
LWTRIANGLE ** geoms
Definition liblwgeom.h:659
POINTARRAY * points
Definition liblwgeom.h:495

References LWTIN::flags, FLAGS_NDIMS, LWTIN::geoms, lwerror(), lwnotice(), LWTIN::ngeoms, LWTRIANGLE::points, printPA(), LWTIN::srid, TINTYPE, and LWTIN::type.

Here is the call graph for this function: