46{
47
49 "POINT(1.1111111111111 1.1111111111111)",
50 "{\"type\":\"Point\",\"coordinates\":[1,1]}",
51 NULL, 0, 0);
52
53
55 "POINT(1.1111111111111 1.1111111111111)",
56 "{\"type\":\"Point\",\"coordinates\":[1.111,1.111]}",
57 NULL, 3, 0);
58
59
61 "POINT(1.2345678901234 1.2345678901234)",
62 "{\"type\":\"Point\",\"coordinates\":[1.23456789,1.23456789]}",
63 NULL, 9, 0);
64
65
67 "POINT(1E300 -1E300)",
68 "{\"type\":\"Point\",\"coordinates\":[1e+300,-1e+300]}",
69 NULL, 0, 0);
70
71
73 "POINT(1 2)",
74 "{\"type\":\"Point\",\"coordinates\":[1,2]}",
75 NULL, 100, 0);
76
77
79 "POINT(59.99 -59.99)",
80 "{\"type\":\"Point\",\"coordinates\":[59.99,-59.99]}",
81 NULL, 15, 0);
82
83
84 do_geojson_test(
"POINT(1E-300 -2E-200)",
"{\"type\":\"Point\",\"coordinates\":[1e-300,-2e-200]}", NULL, 300, 0);
85}
static void do_geojson_test(char *in, char *out, char *srs, int precision, int has_bbox)