PostGIS  3.3.9dev-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 lwvarlena_tasgeojson_point (const LWPOINT *point, const char *srs, GBOX *bbox, int precision)
 
static lwvarlena_tasgeojson_line (const LWLINE *line, const char *srs, GBOX *bbox, int precision)
 
static lwvarlena_tasgeojson_triangle (const LWTRIANGLE *tri, const char *srs, GBOX *bbox, int precision)
 
static lwvarlena_tasgeojson_poly (const LWPOLY *poly, const char *srs, GBOX *bbox, int precision)
 
static lwvarlena_tasgeojson_multipoint (const LWMPOINT *mpoint, const char *srs, GBOX *bbox, int precision)
 
static lwvarlena_tasgeojson_multiline (const LWMLINE *mline, const char *srs, GBOX *bbox, int precision)
 
static lwvarlena_tasgeojson_multipolygon (const LWMPOLY *mpoly, const char *srs, GBOX *bbox, int precision)
 
static lwvarlena_tasgeojson_collection (const LWCOLLECTION *col, const 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)
 
lwvarlena_tlwgeom_to_geojson (const LWGEOM *geom, const char *srs, int precision, int has_bbox)
 Takes a GEOMETRY and returns a GeoJson representation. More...
 
static size_t asgeojson_srs_size (const char *srs)
 Handle SRS. More...
 
static size_t asgeojson_srs_buf (char *output, const 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, const char *srs, GBOX *bbox, int precision)
 Point Geometry. More...
 
static size_t asgeojson_point_buf (const LWPOINT *point, const char *srs, char *output, GBOX *bbox, int precision)
 
static size_t asgeojson_triangle_size (const LWTRIANGLE *tri, const char *srs, GBOX *bbox, int precision)
 Triangle Geometry. More...
 
static size_t asgeojson_triangle_buf (const LWTRIANGLE *tri, const char *srs, char *output, GBOX *bbox, int precision)