PostGIS  3.0.6dev-r@@SVN_REVISION@@
lwin_geojson.c File Reference
#include "liblwgeom.h"
#include "lwgeom_log.h"
#include "../postgis_config.h"
#include <json.h>
#include <json_object_private.h>
#include <string.h>
Include dependency graph for lwin_geojson.c:

Go to the source code of this file.

Macros

#define JSON_C_VERSION_013   (13 << 8)
 
#define json_tokener_error_desc(x)   json_tokener_errors[(x)]
 

Functions

static LWGEOMparse_geojson (json_object *geojson, int *hasz)
 
static json_object * findMemberByName (json_object *poObj, const char *pszName)
 
static json_object * parse_coordinates (json_object *geojson)
 
static int parse_geojson_coord (json_object *poObj, int *hasz, POINTARRAY *pa)
 
static LWGEOMparse_geojson_point (json_object *geojson, int *hasz)
 
static LWGEOMparse_geojson_linestring (json_object *geojson, int *hasz)
 
static LWPOLYparse_geojson_poly_rings (json_object *rings, int *hasz)
 
static LWGEOMparse_geojson_polygon (json_object *geojson, int *hasz)
 
static LWGEOMparse_geojson_multipoint (json_object *geojson, int *hasz)
 
static LWGEOMparse_geojson_multilinestring (json_object *geojson, int *hasz)
 
static LWGEOMparse_geojson_multipolygon (json_object *geojson, int *hasz)
 
static LWGEOMparse_geojson_geometrycollection (json_object *geojson, int *hasz)
 
LWGEOMlwgeom_from_geojson (const char *geojson, char **srs)
 Create an LWGEOM object from a GeoJSON representation. More...