PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ asgeojson_line()

static char * asgeojson_line ( const LWLINE line,
char *  srs,
GBOX bbox,
int  precision 

Definition at line 248 of file lwout_geojson.c.

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

Referenced by lwgeom_to_geojson().

249 {
250  char *output;
251  int size;
253  size = asgeojson_line_size(line, srs, bbox, precision);
254  output = lwalloc(size);
255  asgeojson_line_buf(line, srs, output, bbox, precision);
257  return output;
258 }
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:229
Here is the call graph for this function:
Here is the caller graph for this function: