PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ asx3d3_line()

static char * asx3d3_line ( const LWLINE line,
char *  srs,
int  precision,
int  opts,
const char *  defid 

Return the linestring as an X3D LineSet.

Definition at line 289 of file lwout_x3d.c.

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

Referenced by lwgeom_to_x3d3().

290 {
291  char *output;
292  int size;
294  size = sizeof("<LineSet><CoordIndex ='' /></LineSet>") + asx3d3_line_size(line, srs, precision, opts, defid);
295  output = lwalloc(size);
296  asx3d3_line_buf(line, srs, output, precision, opts, defid);
297  return output;
298 }
uint8_t precision
Definition: cu_in_twkb.c:25
void * lwalloc(size_t size)
Definition: lwutil.c:199
static size_t asx3d3_line_buf(const LWLINE *line, char *srs, char *output, int precision, int opts, const char *defid)
Definition: lwout_x3d.c:164
static size_t asx3d3_line_size(const LWLINE *line, char *srs, int precision, int opts, const char *defid)
Definition: lwout_x3d.c:141
Here is the call graph for this function:
Here is the caller graph for this function: