PostGIS 3.0.6dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ 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 929 of file lwout_gml.c.

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

References IS_DIMS, 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: