PostGIS  3.0.6dev-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 1330 of file lwout_gml.c.

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

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: