PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ printLWPOLY()

void printLWPOLY ( LWPOLY poly)

Definition at line 195 of file lwpoly.c.

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

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