194 json_object* points = NULL;
197 LWDEBUG(2,
"parse_geojson_linestring called.");
208 if( json_type_array == json_object_get_type( points ) )
210 const int nPoints = json_object_array_length( points );
211 for(i = 0; i < nPoints; ++i)
213 json_object* coords = NULL;
214 coords = json_object_array_get_idx( points, i );
221 LWDEBUG(2,
"parse_geojson_linestring finished.");
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.
#define LWDEBUG(level, msg)
static int parse_geojson_coord(json_object *poObj, int *hasz, POINTARRAY *pa)
LWLINE * lwline_construct(int srid, GBOX *bbox, POINTARRAY *points)
static json_object * findMemberByName(json_object *poObj, const char *pszName)