278 const int nLines = json_object_array_length(mls);
279 for (
int i = 0; i < nLines; ++i)
282 json_object *coords = json_object_array_get_idx(mls, i);
284 if (json_type_array == json_object_get_type(coords))
286 const int nPoints = json_object_array_length(coords);
287 for (
int j = 0; j < nPoints; ++j)
289 json_object *coord = json_object_array_get_idx(coords, j);
LWMLINE * lwmline_add_lwline(LWMLINE *mobj, const LWLINE *obj)
LWLINE * lwline_construct(int32_t srid, GBOX *bbox, POINTARRAY *points)
POINTARRAY * ptarray_construct_empty(char hasz, char hasm, uint32_t maxpoints)
Create a new POINTARRAY with no points.
LWCOLLECTION * lwcollection_construct_empty(uint8_t type, int32_t srid, char hasz, char hasm)
void ptarray_free(POINTARRAY *pa)
void lwmline_free(LWMLINE *mline)
static json_object * parse_coordinates(json_object *geojson)
static int parse_geojson_coord(json_object *poObj, int *hasz, POINTARRAY *pa)