342 json_object* poObjLines = NULL;
360 if( json_type_array == json_object_get_type( poObjLines ) )
362 const int nLines = json_object_array_length( poObjLines );
363 for( i = 0; i < nLines; ++i)
366 json_object* poObjLine = NULL;
367 poObjLine = json_object_array_get_idx( poObjLines, i );
370 if( json_type_array == json_object_get_type( poObjLine ) )
372 const int nPoints = json_object_array_length( poObjLine );
373 for(j = 0; j < nPoints; ++j)
375 json_object* coords = NULL;
376 coords = json_object_array_get_idx( poObjLine, j );
static void geojson_lwerror(char *msg, __attribute__((__unused__)) int error_code)
POINTARRAY * ptarray_construct_empty(char hasz, char hasm, uint32_t maxpoints)
Create a new POINTARRAY with no points.
static int parse_geojson_coord(json_object *poObj, int *hasz, POINTARRAY *pa)
LWMLINE * lwmline_add_lwline(LWMLINE *mobj, const LWLINE *obj)
LWLINE * lwline_construct(int srid, GBOX *bbox, POINTARRAY *points)
static json_object * findMemberByName(json_object *poObj, const char *pszName)
LWCOLLECTION * lwcollection_construct_empty(uint8_t type, int srid, char hasz, char hasm)