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

◆ asgml3_tin_size()

static size_t asgml3_tin_size ( const LWTIN tin,
const char *  srs,
int  precision,
int  opts,
const char *  prefix,
const char *  id 
)
static

Definition at line 1567 of file lwout_gml.c.

1568{
1569 uint32_t i;
1570 size_t size;
1571 size_t prefixlen = strlen(prefix);
1572
1573 size = (sizeof("<Tin><trianglePatches>/") + prefixlen*2) * 2;
1574 if (srs) size += strlen(srs) + sizeof(" srsName=..");
1575 if (id) size += strlen(id) + strlen(prefix) + sizeof(" id=..");
1576
1577 for (i=0; i<tin->ngeoms; i++)
1578 {
1579 size += asgml3_triangle_size(tin->geoms[i], 0, precision, opts, prefix, id);
1580 }
1581
1582 return size;
1583}
static uint8_t precision
Definition cu_in_twkb.c:25
static size_t asgml3_triangle_size(const LWTRIANGLE *triangle, const char *srs, int precision, int opts, const char *prefix, const char *id)
Definition lwout_gml.c:1330
uint32_t ngeoms
Definition liblwgeom.h:650
LWTRIANGLE ** geoms
Definition liblwgeom.h:645

References asgml3_triangle_size(), LWTIN::geoms, LWTIN::ngeoms, and precision.

Referenced by asgml3_tin().

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