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

Return the linestring as an X3D LineSet.

Definition at line 282 of file lwout_x3d.c.

References asx3d3_line_buf(), asx3d3_line_size(), and lwalloc().

Referenced by lwgeom_to_x3d3().

283 {
284  char *output;
285  int size;
286 
287  size = sizeof("<LineSet><CoordIndex ='' /></LineSet>") + asx3d3_line_size(line, srs, precision, opts, defid);
288  output = lwalloc(size);
289  asx3d3_line_buf(line, srs, output, precision, opts, defid);
290  return output;
291 }
void * lwalloc(size_t size)
Definition: lwutil.c:175
static size_t asx3d3_line_buf(const LWLINE *line, char *srs, char *output, int precision, int opts, const char *defid)
Definition: lwout_x3d.c:158
static size_t asx3d3_line_size(const LWLINE *line, char *srs, int precision, int opts, const char *defid)
Definition: lwout_x3d.c:142

Here is the call graph for this function:

Here is the caller graph for this function: