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

Go to the source code of this file.

Data Structures

struct  geojson_opts
 

Typedefs

typedef struct geojson_opts geojson_opts
 

Enumerations

enum  { geojson_tagged , geojson_untagged }
 

Functions

static void asgeojson_geometry (stringbuffer_t *sb, const LWGEOM *geom, const geojson_opts *opts)
 
static void coordinate_to_geojson (stringbuffer_t *sb, const POINTARRAY *pa, uint32_t i, const geojson_opts *opts)
 
static void pointArray_to_geojson (stringbuffer_t *sb, const POINTARRAY *pa, const geojson_opts *opts)
 
static void asgeojson_srs (stringbuffer_t *sb, const geojson_opts *opts)
 
static void asgeojson_bbox (stringbuffer_t *sb, const geojson_opts *opts)
 
static void asgeojson_point_coords (stringbuffer_t *sb, const LWPOINT *point, const geojson_opts *opts, int tagged)
 Point Geometry. More...
 
static void asgeojson_line_coords (stringbuffer_t *sb, const LWLINE *line, const geojson_opts *opts, int tagged)
 
static void asgeojson_poly_coords (stringbuffer_t *sb, const LWPOLY *poly, const geojson_opts *opts, int tagged)
 
static void asgeojson_point (stringbuffer_t *sb, const LWPOINT *point, const geojson_opts *opts)
 Point Geometry. More...
 
static void asgeojson_triangle (stringbuffer_t *sb, const LWTRIANGLE *tri, const geojson_opts *opts)
 Triangle Geometry. More...
 
static void asgeojson_line (stringbuffer_t *sb, const LWLINE *line, const geojson_opts *opts)
 Line Geometry. More...
 
static void asgeojson_poly (stringbuffer_t *sb, const LWPOLY *poly, const geojson_opts *opts)
 Polygon Geometry. More...
 
static void asgeojson_multipoint (stringbuffer_t *sb, const LWMPOINT *mpoint, const geojson_opts *opts)
 Multipoint Geometry. More...
 
static void asgeojson_multiline (stringbuffer_t *sb, const LWMLINE *mline, const geojson_opts *opts)
 Multipoint Geometry. More...
 
static void asgeojson_multipolygon (stringbuffer_t *sb, const LWMPOLY *mpoly, const geojson_opts *opts)
 
static void asgeojson_collection (stringbuffer_t *sb, const LWCOLLECTION *col, const geojson_opts *opts)
 Collection Geometry. More...
 
lwvarlena_tlwgeom_to_geojson (const LWGEOM *geom, const char *srs, int precision, int has_bbox)
 Takes a GEOMETRY and returns a GeoJson representation. More...