457 json_object* poObjGeoms = NULL;
475 if( json_type_array == json_object_get_type( poObjGeoms ) )
477 const int nGeoms = json_object_array_length( poObjGeoms );
478 json_object* poObjGeom = NULL;
479 for(i = 0; i < nGeoms; ++i )
481 poObjGeom = json_object_array_get_idx( poObjGeoms, i );
static LWGEOM * parse_geojson(json_object *geojson, int *hasz, int root_srid)
static void geojson_lwerror(char *msg, __attribute__((__unused__)) int error_code)
static json_object * findMemberByName(json_object *poObj, const char *pszName)
LWCOLLECTION * lwcollection_construct_empty(uint8_t type, int srid, char hasz, char hasm)
LWCOLLECTION * lwcollection_add_lwgeom(LWCOLLECTION *col, const LWGEOM *geom)
Appends geom to the collection managed by col.