PostGIS  3.0.6dev-r@@SVN_REVISION@@
lwout_geojson.c File Reference
#include "liblwgeom_internal.h"
#include <string.h>
#include <assert.h>
Include dependency graph for lwout_geojson.c:

Go to the source code of this file.

Functions

static char * asgeojson_point (const LWPOINT *point, char *srs, GBOX *bbox, int precision)
 
static char * asgeojson_line (const LWLINE *line, char *srs, GBOX *bbox, int precision)
 
static char * asgeojson_triangle (const LWTRIANGLE *tri, char *srs, GBOX *bbox, int precision)
 
static char * asgeojson_poly (const LWPOLY *poly, char *srs, GBOX *bbox, int precision)
 
static char * asgeojson_multipoint (const LWMPOINT *mpoint, char *srs, GBOX *bbox, int precision)
 
static char * asgeojson_multiline (const LWMLINE *mline, char *srs, GBOX *bbox, int precision)
 
static char * asgeojson_multipolygon (const LWMPOLY *mpoly, char *srs, GBOX *bbox, int precision)
 
static char * asgeojson_collection (const LWCOLLECTION *col, char *srs, GBOX *bbox, int precision)
 
static size_t asgeojson_geom_size (const LWGEOM *geom, GBOX *bbox, int precision)
 
static size_t asgeojson_geom_buf (const LWGEOM *geom, char *output, GBOX *bbox, int precision)
 
static size_t pointArray_to_geojson (POINTARRAY *pa, char *buf, int precision)
 
static size_t pointArray_geojson_size (POINTARRAY *pa, int precision)
 
char * lwgeom_to_geojson (const LWGEOM *geom, char *srs, int precision, int has_bbox)
 Takes a GEOMETRY and returns a GeoJson representation. More...
 
static size_t asgeojson_srs_size (char *srs)
 Handle SRS. More...
 
static size_t asgeojson_srs_buf (char *output, char *srs)
 
static size_t asgeojson_bbox_size (int hasz, int precision)
 Handle Bbox. More...
 
static size_t asgeojson_bbox_buf (char *output, GBOX *bbox, int hasz, int precision)
 
static size_t asgeojson_point_size (const LWPOINT *point, char *srs, GBOX *bbox, int precision)
 Point Geometry. More...
 
static size_t asgeojson_point_buf (const LWPOINT *point, char *srs, char *output, GBOX *bbox, int precision)
 
static size_t asgeojson_triangle_size (const LWTRIANGLE *tri, char *srs, GBOX *bbox, int precision)
 Triangle Geometry. More...
 
static size_t asgeojson_triangle_buf (const LWTRIANGLE *tri, char *srs, char *output, GBOX *bbox, int precision)