PostGIS  2.5.1dev-r@@SVN_REVISION@@
lwin_geojson.c File Reference
#include <assert.h>
#include "liblwgeom.h"
#include "lwgeom_log.h"
#include "../postgis_config.h"
#include <json-c/json.h>
#include <json-c/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 void geojson_lwerror (char *msg, __attribute__((__unused__)) int error_code)
 
static LWGEOMparse_geojson (json_object *geojson, int *hasz, int root_srid)
 
static json_object * findMemberByName (json_object *poObj, const char *pszName)
 
static int parse_geojson_coord (json_object *poObj, int *hasz, POINTARRAY *pa)
 
static LWGEOMparse_geojson_point (json_object *geojson, int *hasz, int root_srid)
 
static LWGEOMparse_geojson_linestring (json_object *geojson, int *hasz, int root_srid)
 
static LWGEOMparse_geojson_polygon (json_object *geojson, int *hasz, int root_srid)
 
static LWGEOMparse_geojson_multipoint (json_object *geojson, int *hasz, int root_srid)
 
static LWGEOMparse_geojson_multilinestring (json_object *geojson, int *hasz, int root_srid)
 
static LWGEOMparse_geojson_multipolygon (json_object *geojson, int *hasz, int root_srid)
 
static LWGEOMparse_geojson_geometrycollection (json_object *geojson, int *hasz, int root_srid)
 
LWGEOMlwgeom_from_geojson (const char *geojson, char **srs)
 Create an LWGEOM object from a GeoJSON representation. More...