PostGIS  3.3.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 1537 of file lwout_gml.c.

1538 {
1539  char *ptr;
1540  uint32_t i;
1541 
1542  ptr = output;
1543 
1544  /* Open outmost tag */
1545  ptr += sprintf(ptr, "<%sPolyhedralSurface", prefix);
1546  if (srs) ptr += sprintf(ptr, " srsName=\"%s\"", srs);
1547  if (id) ptr += sprintf(ptr, " %sid=\"%s\"", prefix, id);
1548  ptr += sprintf(ptr, "><%spolygonPatches>", prefix);
1549 
1550  for (i=0; i<psur->ngeoms; i++)
1551  {
1552  ptr += asgml3_poly_buf(psur->geoms[i], 0, ptr, precision, opts, 1, prefix, id);
1553  }
1554 
1555  /* Close outmost tag */
1556  ptr += sprintf(ptr, "</%spolygonPatches></%sPolyhedralSurface>",
1557  prefix, prefix);
1558 
1559  return (ptr-output);
1560 }
static 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:1024
opts
Definition: ovdump.py:45
LWPOLY ** geoms
Definition: liblwgeom.h:660
uint32_t ngeoms
Definition: liblwgeom.h:665

References asgml3_poly_buf(), LWPSURFACE::geoms, LWPSURFACE::ngeoms, ovdump::opts, and precision.

Referenced by asgml3_psurface().

Here is the call graph for this function:
Here is the caller graph for this function: