PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ asx3d3_point_size()

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 116 of file lwout_x3d.c.

References LWPOINT::point, and pointArray_X3Dsize().

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

117 {
118  int size;
119  /* size_t defidlen = strlen(defid); */
120 
121  size = pointArray_X3Dsize(point->point, precision);
122  /* size += ( sizeof("<point><pos>/") + (defidlen*2) ) * 2; */
123  /* if (srs) size += strlen(srs) + sizeof(" srsName=.."); */
124  return size;
125 }
static size_t pointArray_X3Dsize(POINTARRAY *pa, int precision)
Returns maximum size of rendered pointarray in bytes.
Definition: lwout_x3d.c:930
POINTARRAY * point
Definition: liblwgeom.h:411
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: