PostGIS  2.5.7dev-r@@SVN_REVISION@@


void printLWTRIANGLE ( LWTRIANGLE triangle)

Definition at line 82 of file lwtriangle.c.

83 {
84  if (triangle->type != TRIANGLETYPE)
85  lwerror("printLWTRIANGLE called with something else than a Triangle");
87  lwnotice("LWTRIANGLE {");
88  lwnotice(" ndims = %i", (int)FLAGS_NDIMS(triangle->flags));
89  lwnotice(" SRID = %i", (int)triangle->srid);
90  printPA(triangle->points);
91  lwnotice("}");
92 }
void printPA(POINTARRAY *pa)
Definition: lwgeom_api.c:506
#define FLAGS_NDIMS(flags)
Definition: liblwgeom.h:152
Definition: liblwgeom.h:98
void lwerror(const char *fmt,...)
Write a notice out to the error handler.
Definition: lwutil.c:190
void lwnotice(const char *fmt,...)
Write a notice out to the notice handler.
Definition: lwutil.c:177
int32_t srid
Definition: liblwgeom.h:435
uint8_t type
Definition: liblwgeom.h:432
Definition: liblwgeom.h:436
uint8_t flags
Definition: liblwgeom.h:433

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

Here is the call graph for this function: