PostGIS  2.1.10dev-r@@SVN_REVISION@@
static size_t asx3d3_point_buf ( const LWPOINT point,
char *  srs,
char *  output,
int  precision,
int  opts,
const char *  defid 
)
static

Definition at line 108 of file lwout_x3d.c.

References LWPOINT::point, and pointArray_toX3D3().

Referenced by asx3d3_collection_buf(), asx3d3_multi_buf(), and asx3d3_point().

109 {
110  char *ptr = output;
111  /* int dimension=2; */
112 
113  /* if (FLAGS_GET_Z(point->flags)) dimension = 3; */
114  /* if ( srs )
115  {
116  ptr += sprintf(ptr, "<%sPoint srsName=\"%s\">", defid, srs);
117  }
118  else*/
119  /* ptr += sprintf(ptr, "%s", defid); */
120 
121  /* ptr += sprintf(ptr, "<%spos>", defid); */
122  ptr += pointArray_toX3D3(point->point, ptr, precision, opts, 0);
123  /* ptr += sprintf(ptr, "</%spos></%sPoint>", defid, defid); */
124 
125  return (ptr-output);
126 }
POINTARRAY * point
Definition: liblwgeom.h:367
static size_t pointArray_toX3D3(POINTARRAY *pa, char *buf, int precision, int opts, int is_closed)
In X3D3, coordinates are separated by a space separator.
Definition: lwout_x3d.c:775

Here is the call graph for this function:

Here is the caller graph for this function: