299 json_object* poObjPoints = NULL;
317 if( json_type_array == json_object_get_type( poObjPoints ) )
319 const int nPoints = json_object_array_length( poObjPoints );
320 for( i = 0; i < nPoints; ++i)
323 json_object* poObjCoords = NULL;
324 poObjCoords = json_object_array_get_idx( poObjPoints, i );
LWCOLLECTION * lwcollection_construct_empty(uint8_t type, int srid, char hasz, char hasm)
LWMPOINT * lwmpoint_add_lwpoint(LWMPOINT *mobj, const LWPOINT *obj)
LWPOINT * lwpoint_construct(int srid, GBOX *bbox, POINTARRAY *point)
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)
static void geojson_lwerror(char *msg, __attribute__((__unused__)) int error_code)
static json_object * findMemberByName(json_object *poObj, const char *pszName)