PostGIS  2.4.9dev-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  int 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:433
void lwnotice(const char *fmt,...)
Write a notice out to the notice handler.
Definition: lwutil.c:177
int ngeoms
Definition: liblwgeom.h:585
#define TINTYPE
Definition: liblwgeom.h:99
LWTRIANGLE ** geoms
Definition: liblwgeom.h:587
uint8_t type
Definition: liblwgeom.h:581
void printPA(POINTARRAY *pa)
Definition: lwgeom_api.c:472
uint8_t flags
Definition: liblwgeom.h:582
#define FLAGS_NDIMS(flags)
Definition: liblwgeom.h:152
int32_t srid
Definition: liblwgeom.h:584
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: