Definition at line 183 of file lwout_geojson.c.
References asgeojson_bbox_buf(), asgeojson_srs_buf(), LWPOINT::flags, FLAGS_GET_Z, lwpoint_is_empty(), LWPOINT::point, and pointArray_to_geojson().
Referenced by asgeojson_geom_buf(), and asgeojson_point().
187 ptr += sprintf(ptr,
"{\"type\":\"Point\",");
191 ptr += sprintf(ptr,
"\"coordinates\":");
193 ptr += sprintf(ptr,
"[]");
195 ptr += sprintf(ptr,
"}");
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.
int lwpoint_is_empty(const LWPOINT *point)