PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ asx3d3_point_buf()

static size_t asx3d3_point_buf ( const LWPOINT point,
char *  srs,
char *  output,
int  precision,
int  opts,
const char *  defid 
)
static

Definition at line 107 of file lwout_x3d.c.

References LWPOINT::point, and pointArray_toX3D3().

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

108 {
109  char *ptr = output;
110  /* int dimension=2; */
111 
112  /* if (FLAGS_GET_Z(point->flags)) dimension = 3; */
113  /* if ( srs )
114  {
115  ptr += sprintf(ptr, "<%sPoint srsName=\"%s\">", defid, srs);
116  }
117  else*/
118  /* ptr += sprintf(ptr, "%s", defid); */
119 
120  /* ptr += sprintf(ptr, "<%spos>", defid); */
121  ptr += pointArray_toX3D3(point->point, ptr, precision, opts, 0);
122  /* ptr += sprintf(ptr, "</%spos></%sPoint>", defid, defid); */
123 
124  return (ptr-output);
125 }
POINTARRAY * point
Definition: liblwgeom.h:395
uint8_t precision
Definition: cu_in_twkb.c:25
opts
Definition: ovdump.py:44
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:819
Here is the call graph for this function:
Here is the caller graph for this function: