PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ asgml3_circstring_size()

static size_t asgml3_circstring_size ( const LWCIRCSTRING circ,
const char *  srs,
int  precision,
int  opts,
const char *  prefix,
const char *  id 
)
static

Definition at line 930 of file lwout_gml.c.

931 {
932  int size = pointArray_GMLsize( circ->points, precision );
933  size_t prefixlen = strlen(prefix);
934  size += 2 * ( sizeof( "<Curve><segments>/" ) + 2 * prefixlen );
935  size += 2 * ( sizeof( "<ArcString><posList>/" ) + 2 * prefixlen );
936  if (srs) size += strlen(srs) + sizeof(" srsName=..");
937  if (id) size += strlen(id) + strlen(prefix) + sizeof(" id=..");
938  if (IS_DIMS(opts)) size += sizeof(" srsDimension='x'");
939  return size;
940 }
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:447

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

Referenced by asgml3_circstring(), asgml3_curvepoly_size(), and asgml3_multicurve_size().

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