PostGIS  2.4.9dev-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:433
void lwnotice(const char *fmt,...)
Write a notice out to the notice handler.
Definition: lwutil.c:177
#define TRIANGLETYPE
Definition: liblwgeom.h:98
uint8_t type
Definition: liblwgeom.h:429
void printPA(POINTARRAY *pa)
Definition: lwgeom_api.c:472
#define FLAGS_NDIMS(flags)
Definition: liblwgeom.h:152
void lwerror(const char *fmt,...)
Write a notice out to the error handler.
Definition: lwutil.c:190
int32_t srid
Definition: liblwgeom.h:432
uint8_t flags
Definition: liblwgeom.h:430
Here is the call graph for this function: