PostGIS 3.0.6dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ 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 1525 of file lwout_gml.c.

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

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

Referenced by asgml3_psurface().

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