PostGIS  2.1.10dev-r@@SVN_REVISION@@
static size_t asgml2_line_size ( const LWLINE line,
const char *  srs,
int  precision,
const char *  prefix 
)
static

Definition at line 294 of file lwout_gml.c.

References pointArray_GMLsize(), and LWLINE::points.

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

295 {
296  int size;
297  size_t prefixlen = strlen(prefix);
298 
299  size = pointArray_GMLsize(line->points, precision);
300  size += ( sizeof("<linestring><coordinates>/") + (prefixlen*2) ) * 2;
301  if ( srs ) size += strlen(srs) + sizeof(" srsName=..");
302  return size;
303 }
static size_t pointArray_GMLsize(POINTARRAY *pa, int precision)
Definition: lwout_gml.c:1471
POINTARRAY * points
Definition: liblwgeom.h:378

Here is the call graph for this function:

Here is the caller graph for this function: