PostGIS  2.4.9dev-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 128 of file lwout_x3d.c.

References LWPOINT::point, and pointArray_toX3D3().

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

129 {
130  char *ptr = output;
131  /* int dimension=2; */
132 
133  /* if (FLAGS_GET_Z(point->flags)) dimension = 3; */
134  /* if ( srs )
135  {
136  ptr += sprintf(ptr, "<%sPoint srsName=\"%s\">", defid, srs);
137  }
138  else*/
139  /* ptr += sprintf(ptr, "%s", defid); */
140 
141  /* ptr += sprintf(ptr, "<%spos>", defid); */
142  ptr += pointArray_toX3D3(point->point, ptr, precision, opts, 0);
143  /* ptr += sprintf(ptr, "</%spos></%sPoint>", defid, defid); */
144 
145  return (ptr-output);
146 }
POINTARRAY * point
Definition: liblwgeom.h:411
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:840
Here is the call graph for this function:
Here is the caller graph for this function: