PostGIS  3.3.9dev-r@@SVN_REVISION@@

◆ asgml2_point_size()

static size_t asgml2_point_size ( const LWPOINT point,
const char *  srs,
int  precision,
const char *  prefix 
)
static

Definition at line 299 of file lwout_gml.c.

300 {
301  int size;
302  size_t prefixlen = strlen(prefix);
303 
304  size = pointArray_GMLsize(point->point, precision);
305  size += ( sizeof("<point><coordinates>/") + (prefixlen*2) ) * 2;
306  if ( srs ) size += strlen(srs) + sizeof(" srsName=..");
307  return size;
308 }
static uint8_t precision
Definition: cu_in_twkb.c:25
static size_t pointArray_GMLsize(POINTARRAY *pa, int precision)
Definition: lwout_gml.c:1950
POINTARRAY * point
Definition: liblwgeom.h:486

References LWPOINT::point, pointArray_GMLsize(), and precision.

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

Here is the call graph for this function:
Here is the caller graph for this function: