PostGIS  2.2.7dev-r@@SVN_REVISION@@
static char * asgeojson_line ( const LWLINE line,
char *  srs,
GBOX bbox,
int  precision 
)
static

Definition at line 234 of file lwout_geojson.c.

References asgeojson_line_buf(), asgeojson_line_size(), and lwalloc().

Referenced by lwgeom_to_geojson().

235 {
236  char *output;
237  int size;
238 
239  size = asgeojson_line_size(line, srs, bbox, precision);
240  output = lwalloc(size);
241  asgeojson_line_buf(line, srs, output, bbox, precision);
242 
243  return output;
244 }
uint8_t precision
Definition: cu_in_twkb.c:25
static size_t asgeojson_line_buf(const LWLINE *line, char *srs, char *output, GBOX *bbox, int precision)
static size_t asgeojson_line_size(const LWLINE *line, char *srs, GBOX *bbox, int precision)
Line Geometry.
void * lwalloc(size_t size)
Definition: lwutil.c:199

Here is the call graph for this function:

Here is the caller graph for this function: