PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ asgeojson_line()

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

Definition at line 248 of file lwout_geojson.c.

249 {
250  char *output;
251  int size;
252 
253  size = asgeojson_line_size(line, srs, bbox, precision);
254  output = lwalloc(size);
255  asgeojson_line_buf(line, srs, output, bbox, precision);
256 
257  return output;
258 }
static uint8_t precision
Definition: cu_in_twkb.c:25
void * lwalloc(size_t size)
Definition: lwutil.c:229
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.

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

Referenced by lwgeom_to_geojson().

Here is the call graph for this function:
Here is the caller graph for this function: