161{
163 if (!points)
164 return NULL;
166 const int nPoints = json_object_array_length(points);
167 for (int i = 0; i < nPoints; i++)
168 {
169 json_object *coords = json_object_array_get_idx(points, i);
171 }
173}
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)