159{
161 if (!points)
162 return NULL;
164 const int nPoints = json_object_array_length(points);
165 for (int i = 0; i < nPoints; i++)
166 {
167 json_object *coords = json_object_array_get_idx(points, i);
169 }
171}
POINTARRAY * ptarray_construct_empty(char hasz, char hasm, uint32_t maxpoints)
Create a new POINTARRAY with no points.
LWLINE * lwline_construct(int32_t srid, GBOX *bbox, POINTARRAY *points)
static json_object * parse_coordinates(json_object *geojson)
static int parse_geojson_coord(json_object *poObj, int *hasz, POINTARRAY *pa)