PostGIS  2.1.10dev-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:389
void lwerror(const char *fmt,...)
Write a notice out to the error handler.
Definition: lwutil.c:67
int ngeoms
Definition: liblwgeom.h:541
void lwnotice(const char *fmt,...)
Write a notice out to the notice handler.
Definition: lwutil.c:54
#define TINTYPE
Definition: liblwgeom.h:74
LWTRIANGLE ** geoms
Definition: liblwgeom.h:543
uint8_t type
Definition: liblwgeom.h:537
void printPA(POINTARRAY *pa)
Definition: lwgeom_api.c:563
uint8_t flags
Definition: liblwgeom.h:538
#define FLAGS_NDIMS(flags)
Definition: liblwgeom.h:118
int32_t srid
Definition: liblwgeom.h:540

Here is the call graph for this function: