Definition at line 416 of file lwout_geojson.c.
References asgeojson_bbox_buf(), asgeojson_srs_buf(), LWMLINE::flags, FLAGS_GET_Z, LWMLINE::geoms, LWMLINE::ngeoms, pointArray_to_geojson(), and LWLINE::points.
Referenced by asgeojson_geom_buf(), and asgeojson_multiline().
422 ptr += sprintf(ptr,
"{\"type\":\"MultiLineString\",");
425 ptr += sprintf(ptr,
"\"coordinates\":[");
427 for (i=0; i<mline->
ngeoms; i++)
429 if (i) ptr += sprintf(ptr,
",");
430 ptr += sprintf(ptr,
"[");
431 line = mline->
geoms[i];
433 ptr += sprintf(ptr,
"]");
436 ptr += sprintf(ptr,
"]}");
438 return (ptr - output);
static size_t asgeojson_srs_buf(char *output, char *srs)
static size_t asgeojson_bbox_buf(char *output, GBOX *bbox, int hasz, int precision)
static size_t pointArray_to_geojson(POINTARRAY *pa, char *buf, int precision)
#define FLAGS_GET_Z(flags)
Macros for manipulating the 'flags' byte.