PostGIS  2.1.10dev-r@@SVN_REVISION@@
void printLWTRIANGLE ( LWTRIANGLE triangle)

Definition at line 69 of file lwtriangle.c.

References LWTRIANGLE::flags, FLAGS_NDIMS, lwerror(), lwnotice(), LWTRIANGLE::points, printPA(), LWTRIANGLE::srid, TRIANGLETYPE, and LWTRIANGLE::type.

70 {
71  if (triangle->type != TRIANGLETYPE)
72  lwerror("printLWTRIANGLE called with something else than a Triangle");
74  lwnotice("LWTRIANGLE {");
75  lwnotice(" ndims = %i", (int)FLAGS_NDIMS(triangle->flags));
76  lwnotice(" SRID = %i", (int)triangle->srid);
77  printPA(triangle->points);
78  lwnotice("}");
79 }
Definition: liblwgeom.h:389
Definition: liblwgeom.h:73
uint8_t type
Definition: liblwgeom.h:385
void lwerror(const char *fmt,...)
Write a notice out to the error handler.
Definition: lwutil.c:67
void lwnotice(const char *fmt,...)
Write a notice out to the notice handler.
Definition: lwutil.c:54
void printPA(POINTARRAY *pa)
Definition: lwgeom_api.c:563
#define FLAGS_NDIMS(flags)
Definition: liblwgeom.h:118
int32_t srid
Definition: liblwgeom.h:388
uint8_t flags
Definition: liblwgeom.h:386

Here is the call graph for this function: