PostGIS  2.1.10dev-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 979 of file lwout_gml.c.

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

Referenced by asgml3_tin_size(), and asgml3_triangle().

980 {
981  size_t size;
982  size_t prefixlen = strlen(prefix);
983 
984  size = ( sizeof("<Triangle><exterior><LinearRing>///") + (prefixlen*3) ) * 2;
985  size += sizeof("<posList></posList>") + (prefixlen*2);
986  if (srs) size += strlen(srs) + sizeof(" srsName=..");
987  if (id) size += strlen(prefix) + strlen(id) + sizeof(" id=..");
988  if (IS_DIMS(opts)) size += sizeof(" srsDimension='x'");
989 
990  size += pointArray_GMLsize(triangle->points, precision);
991 
992  return size;
993 }
POINTARRAY * points
Definition: liblwgeom.h:389
#define IS_DIMS(x)
Definition: liblwgeom.h:1367
static size_t pointArray_GMLsize(POINTARRAY *pa, int precision)
Definition: lwout_gml.c:1471

Here is the call graph for this function:

Here is the caller graph for this function: