PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ printLWTIN()

void printLWTIN ( LWTIN tin)

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:506
#define TINTYPE
Definition: liblwgeom.h:99
#define FLAGS_NDIMS(flags)
Definition: liblwgeom.h:152
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
uint32_t ngeoms
Definition: liblwgeom.h:588
int32_t srid
Definition: liblwgeom.h:587
uint8_t flags
Definition: liblwgeom.h:585
uint8_t type
Definition: liblwgeom.h:584
LWTRIANGLE ** geoms
Definition: liblwgeom.h:590
POINTARRAY * points
Definition: liblwgeom.h:436
unsigned int uint32_t
Definition: uthash.h:78

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: