PostGIS  2.3.8dev-r@@SVN_REVISION@@

◆ printLWPOLY()

void printLWPOLY ( LWPOLY poly)

Definition at line 173 of file lwpoly.c.

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

174 {
175  int t;
176  lwnotice("LWPOLY {");
177  lwnotice(" ndims = %i", (int)FLAGS_NDIMS(poly->flags));
178  lwnotice(" SRID = %i", (int)poly->srid);
179  lwnotice(" nrings = %i", (int)poly->nrings);
180  for (t=0; t<poly->nrings; t++)
181  {
182  lwnotice(" RING # %i :",t);
183  printPA(poly->rings[t]);
184  }
185  lwnotice("}");
186 }
void lwnotice(const char *fmt,...)
Write a notice out to the notice handler.
Definition: lwutil.c:89
POINTARRAY ** rings
Definition: liblwgeom.h:456
int nrings
Definition: liblwgeom.h:454
void printPA(POINTARRAY *pa)
Definition: lwgeom_api.c:611
int32_t srid
Definition: liblwgeom.h:453
uint8_t flags
Definition: liblwgeom.h:451
#define FLAGS_NDIMS(flags)
Definition: liblwgeom.h:151
Here is the call graph for this function: