PostGIS  2.5.0beta1dev-r@@SVN_REVISION@@

◆ printLWPOLY()

void printLWPOLY ( LWPOLY poly)

Definition at line 193 of file lwpoly.c.

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

194 {
195  uint32_t t;
196  lwnotice("LWPOLY {");
197  lwnotice(" ndims = %i", (int)FLAGS_NDIMS(poly->flags));
198  lwnotice(" SRID = %i", (int)poly->srid);
199  lwnotice(" nrings = %i", (int)poly->nrings);
200  for (t=0; t<poly->nrings; t++)
201  {
202  lwnotice(" RING # %i :",t);
203  printPA(poly->rings[t]);
204  }
205  lwnotice("}");
206 }
void lwnotice(const char *fmt,...)
Write a notice out to the notice handler.
Definition: lwutil.c:177
uint32_t nrings
Definition: liblwgeom.h:457
unsigned int uint32_t
Definition: uthash.h:78
POINTARRAY ** rings
Definition: liblwgeom.h:459
void printPA(POINTARRAY *pa)
Definition: lwgeom_api.c:496
int32_t srid
Definition: liblwgeom.h:456
uint8_t flags
Definition: liblwgeom.h:454
#define FLAGS_NDIMS(flags)
Definition: liblwgeom.h:151
Here is the call graph for this function: