PostGIS 3.0.6dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ asgeojson_triangle()

static char * asgeojson_triangle ( const LWTRIANGLE tri,
char *  srs,
GBOX bbox,
int  precision 
)
static

Definition at line 254 of file lwout_geojson.c.

255{
256 char *output;
257 int size;
258
259 size = asgeojson_triangle_size(tri, srs, bbox, precision);
260 output = lwalloc(size);
261 asgeojson_triangle_buf(tri, srs, output, bbox, precision);
262
263 return output;
264}
static uint8_t precision
Definition cu_in_twkb.c:25
void * lwalloc(size_t size)
Definition lwutil.c:227
static size_t asgeojson_triangle_size(const LWTRIANGLE *tri, char *srs, GBOX *bbox, int precision)
Triangle Geometry.
static size_t asgeojson_triangle_buf(const LWTRIANGLE *tri, char *srs, char *output, GBOX *bbox, int precision)

References asgeojson_triangle_buf(), asgeojson_triangle_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: