PostGIS  2.4.9dev-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 315 of file lwout_gml.c.

References pointArray_GMLsize(), and LWLINE::points.

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

316 {
317  int size;
318  size_t prefixlen = strlen(prefix);
319 
320  size = pointArray_GMLsize(line->points, precision);
321  size += ( sizeof("<linestring><coordinates>/") + (prefixlen*2) ) * 2;
322  if ( srs ) size += strlen(srs) + sizeof(" srsName=..");
323  return size;
324 }
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:422
Here is the call graph for this function:
Here is the caller graph for this function: