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

defid is the id of the coordinate can be used to hold other elements DEF='abc' transform='' etc.

Definition at line 95 of file lwout_x3d.c.

References LWPOINT::point, and pointArray_X3Dsize().

Referenced by asx3d3_collection_size(), asx3d3_multi_size(), and asx3d3_point().

96 {
97  int size;
98  /* size_t defidlen = strlen(defid); */
99 
100  size = pointArray_X3Dsize(point->point, precision);
101  /* size += ( sizeof("<point><pos>/") + (defidlen*2) ) * 2; */
102  /* if (srs) size += strlen(srs) + sizeof(" srsName=.."); */
103  return size;
104 }
static size_t pointArray_X3Dsize(POINTARRAY *pa, int precision)
Returns maximum size of rendered pointarray in bytes.
Definition: lwout_x3d.c:909
POINTARRAY * point
Definition: liblwgeom.h:395
uint8_t precision
Definition: cu_in_twkb.c:25

Here is the call graph for this function:

Here is the caller graph for this function: