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

Definition at line 133 of file cu_out_geojson.c.

References do_geojson_test().

Referenced by out_geojson_suite_setup().

134 {
135  /* Linestring */
137  "LINESTRING(0 1,2 3,4 5)",
138  "{\"type\":\"LineString\",\"crs\":{\"type\":\"name\",\"properties\":{\"name\":\"EPSG:4326\"}},\"coordinates\":[[0,1],[2,3],[4,5]]}",
139  "EPSG:4326", 0, 0);
140 
141  /* Polygon */
143  "POLYGON((0 1,2 3,4 5,0 1))",
144  "{\"type\":\"Polygon\",\"crs\":{\"type\":\"name\",\"properties\":{\"name\":\"EPSG:4326\"}},\"coordinates\":[[[0,1],[2,3],[4,5],[0,1]]]}",
145  "EPSG:4326", 0, 0);
146 
147  /* Polygon - with internal ring */
149  "POLYGON((0 1,2 3,4 5,0 1),(6 7,8 9,10 11,6 7))",
150  "{\"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]]]}",
151  "EPSG:4326", 0, 0);
152 
153  /* Multiline */
155  "MULTILINESTRING((0 1,2 3,4 5),(6 7,8 9,10 11))",
156  "{\"type\":\"MultiLineString\",\"crs\":{\"type\":\"name\",\"properties\":{\"name\":\"EPSG:4326\"}},\"coordinates\":[[[0,1],[2,3],[4,5]],[[6,7],[8,9],[10,11]]]}",
157  "EPSG:4326", 0, 0);
158 
159  /* MultiPolygon */
161  "MULTIPOLYGON(((0 1,2 3,4 5,0 1)),((6 7,8 9,10 11,6 7)))",
162  "{\"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]]]]}",
163  "EPSG:4326", 0, 0);
164 
165  /* GeometryCollection */
167  "GEOMETRYCOLLECTION(POINT(0 1),LINESTRING(2 3,4 5))",
168  "{\"type\":\"GeometryCollection\",\"crs\":{\"type\":\"name\",\"properties\":{\"name\":\"EPSG:4326\"}},\"geometries\":[{\"type\":\"Point\",\"coordinates\":[0,1]},{\"type\":\"LineString\",\"coordinates\":[[2,3],[4,5]]}]}",
169  "EPSG:4326", 0, 0);
170 
171  /* Empty GeometryCollection */
173  "GEOMETRYCOLLECTION EMPTY",
174  "{\"type\":\"GeometryCollection\",\"crs\":{\"type\":\"name\",\"properties\":{\"name\":\"EPSG:4326\"}},\"geometries\":[]}",
175  "EPSG:4326", 0, 0);
176 }
static void do_geojson_test(char *in, char *out, char *srs, int precision, int has_bbox)

Here is the call graph for this function:

Here is the caller graph for this function: