PostGIS  2.5.1dev-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.

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

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

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 }
#define IS_DIMS(x)
Definition: liblwgeom.h:1550
uint8_t precision
Definition: cu_in_twkb.c:25
static size_t pointArray_GMLsize(POINTARRAY *pa, int precision)
Definition: lwout_gml.c:1949
POINTARRAY * points
Definition: liblwgeom.h:446
opts
Definition: ovdump.py:44
Here is the call graph for this function:
Here is the caller graph for this function: