PostGIS  2.2.7dev-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");
73 
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 }
POINTARRAY * points
Definition: liblwgeom.h:417
void lwnotice(const char *fmt,...)
Write a notice out to the notice handler.
Definition: lwutil.c:61
#define TRIANGLETYPE
Definition: liblwgeom.h:83
uint8_t type
Definition: liblwgeom.h:413
void printPA(POINTARRAY *pa)
Definition: lwgeom_api.c:598
#define FLAGS_NDIMS(flags)
Definition: liblwgeom.h:136
void lwerror(const char *fmt,...)
Write a notice out to the error handler.
Definition: lwutil.c:74
int32_t srid
Definition: liblwgeom.h:416
uint8_t flags
Definition: liblwgeom.h:414

Here is the call graph for this function: