PostGIS  2.3.7dev-r@@SVN_REVISION@@
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 949 of file lwout_gml.c.

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

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

950 {
951  int size = pointArray_GMLsize( circ->points, precision );
952  size_t prefixlen = strlen(prefix);
953  size += 2 * ( sizeof( "<Curve><segments>/" ) + 2 * prefixlen );
954  size += 2 * ( sizeof( "<ArcString><posList>/" ) + 2 * prefixlen );
955  if (srs) size += strlen(srs) + sizeof(" srsName=..");
956  if (id) size += strlen(id) + strlen(prefix) + sizeof(" id=..");
957  if (IS_DIMS(opts)) size += sizeof(" srsDimension='x'");
958  return size;
959 }
#define IS_DIMS(x)
Definition: liblwgeom.h:1522
uint8_t precision
Definition: cu_in_twkb.c:25
static size_t pointArray_GMLsize(POINTARRAY *pa, int precision)
Definition: lwout_gml.c:1987
POINTARRAY * points
Definition: liblwgeom.h:443

Here is the call graph for this function:

Here is the caller graph for this function: