PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ asgml3_psurface_buf()

static size_t asgml3_psurface_buf ( const LWPSURFACE psur,
const char *  srs,
char *  output,
int  precision,
int  opts,
const char *  prefix,
const char *  id 
)
static

Definition at line 1545 of file lwout_gml.c.

References asgml3_poly_buf(), LWPSURFACE::geoms, and LWPSURFACE::ngeoms.

Referenced by asgml3_psurface().

1546 {
1547  char *ptr;
1548  int i;
1549 
1550  ptr = output;
1551 
1552  /* Open outmost tag */
1553  ptr += sprintf(ptr, "<%sPolyhedralSurface", prefix);
1554  if (srs) ptr += sprintf(ptr, " srsName=\"%s\"", srs);
1555  if (id) ptr += sprintf(ptr, " %sid=\"%s\"", prefix, id);
1556  ptr += sprintf(ptr, "><%spolygonPatches>", prefix);
1557 
1558  for (i=0; i<psur->ngeoms; i++)
1559  {
1560  ptr += asgml3_poly_buf(psur->geoms[i], 0, ptr, precision, opts, 1, prefix, id);
1561  }
1562 
1563  /* Close outmost tag */
1564  ptr += sprintf(ptr, "</%spolygonPatches></%sPolyhedralSurface>",
1565  prefix, prefix);
1566 
1567  return (ptr-output);
1568 }
LWPOLY ** geoms
Definition: liblwgeom.h:574
uint8_t precision
Definition: cu_in_twkb.c:25
static size_t asgml3_poly_buf(const LWPOLY *poly, const char *srs, char *output, int precision, int opts, int is_patch, const char *prefix, const char *id)
Definition: lwout_gml.c:1034
opts
Definition: ovdump.py:44
int ngeoms
Definition: liblwgeom.h:572
Here is the call graph for this function:
Here is the caller graph for this function: