PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ asx3d3_line()

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

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

Referenced by lwgeom_to_x3d3().

311 {
312  char *output;
313  int size;
314 
315  size = sizeof("<LineSet><CoordIndex ='' /></LineSet>") + asx3d3_line_size(line, srs, precision, opts, defid);
316  output = lwalloc(size);
317  asx3d3_line_buf(line, srs, output, precision, opts, defid);
318  return output;
319 }
uint8_t precision
Definition: cu_in_twkb.c:25
void * lwalloc(size_t size)
Definition: lwutil.c:229
opts
Definition: ovdump.py:44
static size_t asx3d3_line_buf(const LWLINE *line, char *srs, char *output, int precision, int opts, const char *defid)
Definition: lwout_x3d.c:185
static size_t asx3d3_line_size(const LWLINE *line, char *srs, int precision, int opts, const char *defid)
Definition: lwout_x3d.c:162
Here is the call graph for this function:
Here is the caller graph for this function: