PostGIS  2.1.10dev-r@@SVN_REVISION@@
static void in_geojson_test_srid ( void  )
static

Definition at line 93 of file cu_in_geojson.c.

References do_geojson_test().

Referenced by in_geojson_suite_setup().

94 {
95  /* Linestring */
97  "LINESTRING(0 1,2 3,4 5)",
98  "{\"type\":\"LineString\",\"crs\":{\"type\":\"name\",\"properties\":{\"name\":\"EPSG:4326\"}},\"coordinates\":[[0,1],[2,3],[4,5]]}",
99  "EPSG:4326", 0, 0);
100 
101  /* Polygon */
103  "POLYGON((0 1,2 3,4 5,0 1))",
104  "{\"type\":\"Polygon\",\"crs\":{\"type\":\"name\",\"properties\":{\"name\":\"EPSG:4326\"}},\"coordinates\":[[[0,1],[2,3],[4,5],[0,1]]]}",
105  "EPSG:4326", 0, 0);
106 
107  /* Polygon - with internal ring */
109  "POLYGON((0 1,2 3,4 5,0 1),(6 7,8 9,10 11,6 7))",
110  "{\"type\":\"Polygon\",\"crs\":{\"type\":\"name\",\"properties\":{\"name\":\"EPSG:4326\"}},\"coordinates\":[[[0,1],[2,3],[4,5],[0,1]],[[6,7],[8,9],[10,11],[6,7]]]}",
111  "EPSG:4326", 0, 0);
112 
113  /* Multiline */
115  "MULTILINESTRING((0 1,2 3,4 5),(6 7,8 9,10 11))",
116  "{\"type\":\"MultiLineString\",\"crs\":{\"type\":\"name\",\"properties\":{\"name\":\"EPSG:4326\"}},\"coordinates\":[[[0,1],[2,3],[4,5]],[[6,7],[8,9],[10,11]]]}",
117  "EPSG:4326", 0, 0);
118 
119  /* MultiPolygon */
121  "MULTIPOLYGON(((0 1,2 3,4 5,0 1)),((6 7,8 9,10 11,6 7)))",
122  "{\"type\":\"MultiPolygon\",\"crs\":{\"type\":\"name\",\"properties\":{\"name\":\"EPSG:4326\"}},\"coordinates\":[[[[0,1],[2,3],[4,5],[0,1]]],[[[6,7],[8,9],[10,11],[6,7]]]]}",
123  "EPSG:4326", 0, 0);
124 
125  /* Empty GeometryCollection */
127  "GEOMETRYCOLLECTION EMPTY",
128  "{\"type\":\"GeometryCollection\",\"crs\":{\"type\":\"name\",\"properties\":{\"name\":\"EPSG:4326\"}},\"geometries\":[]}",
129  "EPSG:4326", 0, 0);
130 }
static void do_geojson_test(const char *exp, char *in, char *exp_srs, int precision, int has_bbox)
Definition: cu_in_geojson.c:22

Here is the call graph for this function:

Here is the caller graph for this function: