PostGIS  2.5.0dev-r@@SVN_REVISION@@
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 1526 of file lwout_gml.c.

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

Referenced by asgml3_psurface().

1527 {
1528  char *ptr;
1529  uint32_t i;
1530 
1531  ptr = output;
1532 
1533  /* Open outmost tag */
1534  ptr += sprintf(ptr, "<%sPolyhedralSurface", prefix);
1535  if (srs) ptr += sprintf(ptr, " srsName=\"%s\"", srs);
1536  if (id) ptr += sprintf(ptr, " %sid=\"%s\"", prefix, id);
1537  ptr += sprintf(ptr, "><%spolygonPatches>", prefix);
1538 
1539  for (i=0; i<psur->ngeoms; i++)
1540  {
1541  ptr += asgml3_poly_buf(psur->geoms[i], 0, ptr, precision, opts, 1, prefix, id);
1542  }
1543 
1544  /* Close outmost tag */
1545  ptr += sprintf(ptr, "</%spolygonPatches></%sPolyhedralSurface>",
1546  prefix, prefix);
1547 
1548  return (ptr-output);
1549 }
LWPOLY ** geoms
Definition: liblwgeom.h:573
uint32_t ngeoms
Definition: liblwgeom.h:571
unsigned int uint32_t
Definition: uthash.h:78
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:1015

Here is the call graph for this function:

Here is the caller graph for this function: