PostGIS  3.1.6dev-r@@SVN_REVISION@@

◆ asgml2_line_size()

static size_t asgml2_line_size ( const LWLINE line,
const char *  srs,
int  precision,
const char *  prefix 
)
static

Definition at line 341 of file lwout_gml.c.

342 {
343  int size;
344  size_t prefixlen = strlen(prefix);
345 
346  size = pointArray_GMLsize(line->points, precision);
347  size += ( sizeof("<linestring><coordinates>/") + (prefixlen*2) ) * 2;
348  if ( srs ) size += strlen(srs) + sizeof(" srsName=..");
349  return size;
350 }
static uint8_t precision
Definition: cu_in_twkb.c:25
static size_t pointArray_GMLsize(POINTARRAY *pa, int precision)
Definition: lwout_gml.c:1950
POINTARRAY * points
Definition: liblwgeom.h:497

References pointArray_GMLsize(), LWLINE::points, and precision.

Referenced by asgml2_collection_size(), asgml2_line(), and asgml2_multi_size().

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