Definition at line 662 of file lwout_gml.c.
References POINTARRAY::flags, FLAGS_GET_Z, getPoint2d_cp(), getPoint3dz_cp(), 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 asgml2_line_buf(), asgml2_point_buf(), asgml2_poly_buf(), and gbox_to_gml2().
682 sprintf(x,
"%g", pt->
x);
688 sprintf(y,
"%g", pt->
y);
691 if ( i ) ptr += sprintf(ptr,
" ");
692 ptr += sprintf(ptr,
"%s,%s", x, y);
705 sprintf(x,
"%g", pt->
x);
711 sprintf(y,
"%g", pt->
y);
717 sprintf(z,
"%g", pt->
z);
720 if ( i ) ptr += sprintf(ptr,
" ");
721 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