Definition at line 177 of file cu_out_geojson.c.
References do_geojson_test().
Referenced by out_geojson_suite_setup().
181 "LINESTRING(0 1,2 3,4 5)",
182 "{\"type\":\"LineString\",\"bbox\":[0,1,4,5],\"coordinates\":[[0,1],[2,3],[4,5]]}",
187 "POLYGON((0 1,2 3,4 5,0 1))",
188 "{\"type\":\"Polygon\",\"bbox\":[0,1,4,5],\"coordinates\":[[[0,1],[2,3],[4,5],[0,1]]]}",
193 "POLYGON((0 1,2 3,4 5,0 1),(6 7,8 9,10 11,6 7))",
194 "{\"type\":\"Polygon\",\"bbox\":[0,1,4,5],\"coordinates\":[[[0,1],[2,3],[4,5],[0,1]],[[6,7],[8,9],[10,11],[6,7]]]}",
199 "MULTILINESTRING((0 1,2 3,4 5),(6 7,8 9,10 11))",
200 "{\"type\":\"MultiLineString\",\"bbox\":[0,1,10,11],\"coordinates\":[[[0,1],[2,3],[4,5]],[[6,7],[8,9],[10,11]]]}",
205 "MULTIPOLYGON(((0 1,2 3,4 5,0 1)),((6 7,8 9,10 11,6 7)))",
206 "{\"type\":\"MultiPolygon\",\"bbox\":[0,1,10,11],\"coordinates\":[[[[0,1],[2,3],[4,5],[0,1]]],[[[6,7],[8,9],[10,11],[6,7]]]]}",
211 "GEOMETRYCOLLECTION(LINESTRING(0 1,-1 3),LINESTRING(2 3,4 5))",
212 "{\"type\":\"GeometryCollection\",\"bbox\":[-1,1,4,5],\"geometries\":[{\"type\":\"LineString\",\"coordinates\":[[0,1],[-1,3]]},{\"type\":\"LineString\",\"coordinates\":[[2,3],[4,5]]}]}",
217 "GEOMETRYCOLLECTION EMPTY",
218 "{\"type\":\"GeometryCollection\",\"geometries\":[]}",
static void do_geojson_test(char *in, char *out, char *srs, int precision, int has_bbox)