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

◆ 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.

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}
static uint8_t precision
Definition cu_in_twkb.c:25
static size_t pointArray_GMLsize(POINTARRAY *pa, int precision)
Definition lwout_gml.c:1947
POINTARRAY * points
Definition liblwgeom.h:469

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: