363 json_object *
type = NULL;
368 lwerror(
"invalid GeoJSON representation");
375 lwerror(
"unknown GeoJSON type");
379 name = json_object_get_string(
type);
381 if (strcasecmp(name,
"Point") == 0)
384 if (strcasecmp(name,
"LineString") == 0)
387 if (strcasecmp(name,
"Polygon") == 0)
390 if (strcasecmp(name,
"MultiPoint") == 0)
393 if (strcasecmp(name,
"MultiLineString") == 0)
396 if (strcasecmp(name,
"MultiPolygon") == 0)
399 if (strcasecmp(name,
"GeometryCollection") == 0)
402 lwerror(
"invalid GeoJson representation");
void lwerror(const char *fmt,...)
Write a notice out to the error handler.
static LWGEOM * parse_geojson_geometrycollection(json_object *geojson, int *hasz)
static LWGEOM * parse_geojson_multipoint(json_object *geojson, int *hasz)
static LWGEOM * parse_geojson_multipolygon(json_object *geojson, int *hasz)
static LWGEOM * parse_geojson_multilinestring(json_object *geojson, int *hasz)
static LWGEOM * parse_geojson_linestring(json_object *geojson, int *hasz)
static LWGEOM * parse_geojson_polygon(json_object *geojson, int *hasz)
static LWGEOM * parse_geojson_point(json_object *geojson, int *hasz)
static json_object * findMemberByName(json_object *poObj, const char *pszName)