PostGIS  3.3.9dev-r@@SVN_REVISION@@

◆ asgml3_point_size()

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 785 of file lwout_gml.c.

786 {
787  int size;
788  size_t prefixlen = strlen(prefix);
789 
790  size = pointArray_GMLsize(point->point, precision);
791  size += ( sizeof("<point><pos>/") + (prefixlen*2) ) * 2;
792  if (srs) size += strlen(srs) + sizeof(" srsName=..");
793  if (id) size += strlen(id) + strlen(prefix) + sizeof(" id=..");
794  if (IS_DIMS(opts)) size += sizeof(" srsDimension='x'");
795  return size;
796 }
static uint8_t precision
Definition: cu_in_twkb.c:25
#define IS_DIMS(x)
Definition: liblwgeom.h:1699
static size_t pointArray_GMLsize(POINTARRAY *pa, int precision)
Definition: lwout_gml.c:1950
opts
Definition: ovdump.py:45
POINTARRAY * point
Definition: liblwgeom.h:486

References IS_DIMS, ovdump::opts, LWPOINT::point, pointArray_GMLsize(), and precision.

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

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