PostGIS  2.1.10dev-r@@SVN_REVISION@@
static size_t asx3d3_line_size ( const LWLINE line,
char *  srs,
int  precision,
int  opts,
const char *  defid 
)
static

Definition at line 142 of file lwout_x3d.c.

References pointArray_X3Dsize(), and LWLINE::points.

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

143 {
144  int size;
145  size_t defidlen = strlen(defid);
146 
147  size = pointArray_X3Dsize(line->points, precision)*2;
148 
149  size += (
150  sizeof("<LineSet vertexCount=''><Coordinate point='' /></LineSet>") + defidlen
151  ) * 2;
152 
153  /* if (srs) size += strlen(srs) + sizeof(" srsName=.."); */
154  return size;
155 }
static size_t pointArray_X3Dsize(POINTARRAY *pa, int precision)
Returns maximum size of rendered pointarray in bytes.
Definition: lwout_x3d.c:858
POINTARRAY * points
Definition: liblwgeom.h:378

Here is the call graph for this function:

Here is the caller graph for this function: