PostGIS  2.2.7dev-r@@SVN_REVISION@@
static size_t asgml3_triangle_size ( const LWTRIANGLE triangle,
const char *  srs,
int  precision,
int  opts,
const char *  prefix,
const char *  id 
)
static

Definition at line 1337 of file lwout_gml.c.

References IS_DIMS, pointArray_GMLsize(), and LWTRIANGLE::points.

Referenced by asgml3_tin_size(), and asgml3_triangle().

1338 {
1339  size_t size;
1340  size_t prefixlen = strlen(prefix);
1341 
1342  size = ( sizeof("<Triangle><exterior><LinearRing>///") + (prefixlen*3) ) * 2;
1343  size += sizeof("<posList></posList>") + (prefixlen*2);
1344  if (srs) size += strlen(srs) + sizeof(" srsName=..");
1345  if (id) size += strlen(prefix) + strlen(id) + sizeof(" id=..");
1346  if (IS_DIMS(opts)) size += sizeof(" srsDimension='x'");
1347 
1348  size += pointArray_GMLsize(triangle->points, precision);
1349 
1350  return size;
1351 }
POINTARRAY * points
Definition: liblwgeom.h:417
#define IS_DIMS(x)
Definition: liblwgeom.h:1478
uint8_t precision
Definition: cu_in_twkb.c:25
static size_t pointArray_GMLsize(POINTARRAY *pa, int precision)
Definition: lwout_gml.c:1974

Here is the call graph for this function:

Here is the caller graph for this function: