PostGIS  2.3.7dev-r@@SVN_REVISION@@
static size_t asgml3_point_size ( const LWPOINT point,
const char *  srs,
int  precision,
int  opts,
const char *  prefix,
const char *  id 
)
static

Definition at line 794 of file lwout_gml.c.

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

Referenced by asgml3_collection_size(), asgml3_multi_size(), and asgml3_point().

795 {
796  int size;
797  size_t prefixlen = strlen(prefix);
798 
799  size = pointArray_GMLsize(point->point, precision);
800  size += ( sizeof("<point><pos>/") + (prefixlen*2) ) * 2;
801  if (srs) size += strlen(srs) + sizeof(" srsName=..");
802  if (id) size += strlen(id) + strlen(prefix) + sizeof(" id=..");
803  if (IS_DIMS(opts)) size += sizeof(" srsDimension='x'");
804  return size;
805 }
POINTARRAY * point
Definition: liblwgeom.h:410
#define IS_DIMS(x)
Definition: liblwgeom.h:1522
uint8_t precision
Definition: cu_in_twkb.c:25
static size_t pointArray_GMLsize(POINTARRAY *pa, int precision)
Definition: lwout_gml.c:1987

Here is the call graph for this function:

Here is the caller graph for this function: