PostGIS  2.2.7dev-r@@SVN_REVISION@@
static size_t asgml2_point_size ( const LWPOINT point,
const char *  srs,
int  precision,
const char *  prefix 
)
static

Definition at line 258 of file lwout_gml.c.

References LWPOINT::point, and pointArray_GMLsize().

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

259 {
260  int size;
261  size_t prefixlen = strlen(prefix);
262 
263  size = pointArray_GMLsize(point->point, precision);
264  size += ( sizeof("<point><coordinates>/") + (prefixlen*2) ) * 2;
265  if ( srs ) size += strlen(srs) + sizeof(" srsName=..");
266  return size;
267 }
POINTARRAY * point
Definition: liblwgeom.h:395
uint8_t precision
Definition: cu_in_twkb.c:25
static size_t pointArray_GMLsize(POINTARRAY *pa, int precision)
Definition: lwout_gml.c:1974

Here is the call graph for this function:

Here is the caller graph for this function: