PostGIS  3.0.0dev-r@@SVN_REVISION@@

◆ printLWTIN()

void printLWTIN ( LWTIN tin)

Definition at line 57 of file lwtin.c.

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

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 }
POINTARRAY * points
Definition: liblwgeom.h:435
void lwnotice(const char *fmt,...)
Write a notice out to the notice handler.
Definition: lwutil.c:177
unsigned int uint32_t
Definition: uthash.h:78
#define TINTYPE
Definition: liblwgeom.h:98
LWTRIANGLE ** geoms
Definition: liblwgeom.h:589
uint8_t type
Definition: liblwgeom.h:583
void printPA(POINTARRAY *pa)
Definition: lwgeom_api.c:475
uint8_t flags
Definition: liblwgeom.h:584
uint32_t ngeoms
Definition: liblwgeom.h:587
#define FLAGS_NDIMS(flags)
Definition: liblwgeom.h:151
int32_t srid
Definition: liblwgeom.h:586
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: