Definition at line 1909 of file lwout_gml.c.
References POINTARRAY::flags, FLAGS_GET_Z, getPoint2d_cp(), getPoint3dz_cp(), IS_DEGREE, POINTARRAY::npoints, OUT_MAX_DIGS_DOUBLE, OUT_MAX_DOUBLE, OUT_MAX_DOUBLE_PRECISION, trim_trailing_zeros(), pixval::x, POINT2D::x, POINT3DZ::x, pixval::y, POINT2D::y, POINT3DZ::y, and POINT3DZ::z.
Referenced by asgml3_circstring_buf(), asgml3_compound_buf(), asgml3_curvepoly_buf(), asgml3_line_buf(), asgml3_point_buf(), asgml3_poly_buf(), asgml3_triangle_buf(), and gbox_to_gml3().
1929 sprintf(x,
"%g", pt->
x);
1935 sprintf(y,
"%g", pt->
y);
1938 if ( i ) ptr += sprintf(ptr,
" ");
1940 ptr += sprintf(ptr,
"%s %s", y, x);
1942 ptr += sprintf(ptr,
"%s %s", x, y);
1955 sprintf(x,
"%g", pt->
x);
1961 sprintf(y,
"%g", pt->
y);
1967 sprintf(z,
"%g", pt->
z);
1970 if ( i ) ptr += sprintf(ptr,
" ");
1972 ptr += sprintf(ptr,
"%s %s %s", y, x, z);
1974 ptr += sprintf(ptr,
"%s %s %s", x, y, z);
#define OUT_MAX_DOUBLE_PRECISION
void trim_trailing_zeros(char *num)
const POINT2D * getPoint2d_cp(const POINTARRAY *pa, int n)
Returns a POINT2D pointer into the POINTARRAY serialized_ptlist, suitable for reading from...
#define FLAGS_GET_Z(flags)
Macros for manipulating the 'flags' byte.
const POINT3DZ * getPoint3dz_cp(const POINTARRAY *pa, int n)
Returns a POINT3DZ pointer into the POINTARRAY serialized_ptlist, suitable for reading from...
#define OUT_MAX_DIGS_DOUBLE