Definition at line 713 of file lwout_geojson.c.
References BUFSIZE, POINTARRAY::flags, FLAGS_GET_Z, getPoint2d_cp(), getPoint3dz_cp(), lwprint_double(), POINTARRAY::npoints, OUT_MAX_DOUBLE_PRECISION, trim_trailing_zeros(), pixval::x, POINT2D::x, POINT3DZ::x, pixval::y, POINT2D::y, POINT3DZ::y, and POINT3DZ::z.
Referenced by asgeojson_line_buf(), asgeojson_multiline_buf(), asgeojson_multipoint_buf(), asgeojson_multipolygon_buf(), asgeojson_point_buf(), and asgeojson_poly_buf().
717 #define BUFSIZE OUT_MAX_DIGS_DOUBLE+OUT_MAX_DOUBLE_PRECISION 746 if ( i ) ptr += sprintf(ptr,
",");
747 ptr += sprintf(ptr,
"[%s,%s]", x, y);
764 if ( i ) ptr += sprintf(ptr,
",");
765 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...
static int lwprint_double(double d, int maxdd, char *buf, size_t bufsize)
#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...