PostGIS  2.5.0beta2dev-r@@SVN_REVISION@@

◆ printLWTRIANGLE()

void printLWTRIANGLE ( LWTRIANGLE triangle)

Definition at line 82 of file lwtriangle.c.

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

83 {
84  if (triangle->type != TRIANGLETYPE)
85  lwerror("printLWTRIANGLE called with something else than a Triangle");
86 
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 }
POINTARRAY * points
Definition: liblwgeom.h:435
void lwnotice(const char *fmt,...)
Write a notice out to the notice handler.
Definition: lwutil.c:177
#define TRIANGLETYPE
Definition: liblwgeom.h:97
uint8_t type
Definition: liblwgeom.h:431
void printPA(POINTARRAY *pa)
Definition: lwgeom_api.c:496
#define FLAGS_NDIMS(flags)
Definition: liblwgeom.h:151
void lwerror(const char *fmt,...)
Write a notice out to the error handler.
Definition: lwutil.c:190
int32_t srid
Definition: liblwgeom.h:434
uint8_t flags
Definition: liblwgeom.h:432
Here is the call graph for this function: