PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ printLWPOLY()

void printLWPOLY ( LWPOLY poly)

Definition at line 100 of file lwpoly.c.

References LWPOLY::flags, FLAGS_NDIMS, lwnotice(), LWPOLY::nrings, printPA(), LWPOLY::rings, and LWPOLY::srid.

101 {
102  int t;
103  lwnotice("LWPOLY {");
104  lwnotice(" ndims = %i", (int)FLAGS_NDIMS(poly->flags));
105  lwnotice(" SRID = %i", (int)poly->srid);
106  lwnotice(" nrings = %i", (int)poly->nrings);
107  for (t=0; t<poly->nrings; t++)
108  {
109  lwnotice(" RING # %i :",t);
110  printPA(poly->rings[t]);
111  }
112  lwnotice("}");
113 }
void lwnotice(const char *fmt,...)
Write a notice out to the notice handler.
Definition: lwutil.c:61
POINTARRAY ** rings
Definition: liblwgeom.h:441
int nrings
Definition: liblwgeom.h:439
void printPA(POINTARRAY *pa)
Definition: lwgeom_api.c:598
int32_t srid
Definition: liblwgeom.h:438
uint8_t flags
Definition: liblwgeom.h:436
#define FLAGS_NDIMS(flags)
Definition: liblwgeom.h:136
Here is the call graph for this function: