PostGIS  2.2.8dev-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 302 of file lwout_gml.c.

References pointArray_GMLsize(), and LWLINE::points.

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

303 {
304  int size;
305  size_t prefixlen = strlen(prefix);
306 
307  size = pointArray_GMLsize(line->points, precision);
308  size += ( sizeof("<linestring><coordinates>/") + (prefixlen*2) ) * 2;
309  if ( srs ) size += strlen(srs) + sizeof(" srsName=..");
310  return size;
311 }
uint8_t precision
Definition: cu_in_twkb.c:25
static size_t pointArray_GMLsize(POINTARRAY *pa, int precision)
Definition: lwout_gml.c:1974
POINTARRAY * points
Definition: liblwgeom.h:406
Here is the call graph for this function:
Here is the caller graph for this function: