PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ asgml3_triangle_size()

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

1332 {
1333  size_t size;
1334  size_t prefixlen = strlen(prefix);
1335 
1336  size = ( sizeof("<Triangle><exterior><LinearRing>///") + (prefixlen*3) ) * 2;
1337  size += sizeof("<posList></posList>") + (prefixlen*2);
1338  if (srs) size += strlen(srs) + sizeof(" srsName=..");
1339  if (id) size += strlen(prefix) + strlen(id) + sizeof(" id=..");
1340  if (IS_DIMS(opts)) size += sizeof(" srsDimension='x'");
1341 
1342  size += pointArray_GMLsize(triangle->points, precision);
1343 
1344  return size;
1345 }
static uint8_t precision
Definition: cu_in_twkb.c:25
#define IS_DIMS(x)
Definition: liblwgeom.h:1551
static size_t pointArray_GMLsize(POINTARRAY *pa, int precision)
Definition: lwout_gml.c:1949
opts
Definition: ovdump.py:44
POINTARRAY * points
Definition: liblwgeom.h:436

References IS_DIMS, ovdump::opts, pointArray_GMLsize(), LWTRIANGLE::points, and precision.

Referenced by asgml3_tin_size(), and asgml3_triangle().

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