PostGIS  2.2.7dev-r@@SVN_REVISION@@
void printLWTIN ( LWTIN tin)

Definition at line 44 of file lwtin.c.

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

45 {
46  int i;
47  LWTRIANGLE *triangle;
48 
49  if (tin->type != TINTYPE)
50  lwerror("printLWTIN called with something else than a TIN");
51 
52  lwnotice("LWTIN {");
53  lwnotice(" ndims = %i", (int)FLAGS_NDIMS(tin->flags));
54  lwnotice(" SRID = %i", (int)tin->srid);
55  lwnotice(" ngeoms = %i", (int)tin->ngeoms);
56 
57  for (i=0; i<tin->ngeoms; i++)
58  {
59  triangle = (LWTRIANGLE *) tin->geoms[i];
60  printPA(triangle->points);
61  }
62  lwnotice("}");
63 }
POINTARRAY * points
Definition: liblwgeom.h:417
void lwnotice(const char *fmt,...)
Write a notice out to the notice handler.
Definition: lwutil.c:61
int ngeoms
Definition: liblwgeom.h:569
#define TINTYPE
Definition: liblwgeom.h:84
LWTRIANGLE ** geoms
Definition: liblwgeom.h:571
uint8_t type
Definition: liblwgeom.h:565
void printPA(POINTARRAY *pa)
Definition: lwgeom_api.c:598
uint8_t flags
Definition: liblwgeom.h:566
#define FLAGS_NDIMS(flags)
Definition: liblwgeom.h:136
int32_t srid
Definition: liblwgeom.h:568
void lwerror(const char *fmt,...)
Write a notice out to the error handler.
Definition: lwutil.c:74

Here is the call graph for this function: