PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ in_geojson_test_srid()

static void in_geojson_test_srid ( void  )
static

Definition at line 68 of file cu_in_geojson.c.

References do_geojson_test().

Referenced by in_geojson_suite_setup().

69 {
70  /* Linestring */
72  "LINESTRING(0 1,2 3,4 5)",
73  "{\"type\":\"LineString\",\"crs\":{\"type\":\"name\",\"properties\":{\"name\":\"EPSG:4326\"}},\"coordinates\":[[0,1],[2,3],[4,5]]}",
74  "EPSG:4326", 0, 0);
75 
76  /* Polygon */
78  "POLYGON((0 1,2 3,4 5,0 1))",
79  "{\"type\":\"Polygon\",\"crs\":{\"type\":\"name\",\"properties\":{\"name\":\"EPSG:4326\"}},\"coordinates\":[[[0,1],[2,3],[4,5],[0,1]]]}",
80  "EPSG:4326", 0, 0);
81 
82  /* Polygon - with internal ring */
84  "POLYGON((0 1,2 3,4 5,0 1),(6 7,8 9,10 11,6 7))",
85  "{\"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]]]}",
86  "EPSG:4326", 0, 0);
87 
88  /* Multiline */
90  "MULTILINESTRING((0 1,2 3,4 5),(6 7,8 9,10 11))",
91  "{\"type\":\"MultiLineString\",\"crs\":{\"type\":\"name\",\"properties\":{\"name\":\"EPSG:4326\"}},\"coordinates\":[[[0,1],[2,3],[4,5]],[[6,7],[8,9],[10,11]]]}",
92  "EPSG:4326", 0, 0);
93 
94  /* MultiPolygon */
96  "MULTIPOLYGON(((0 1,2 3,4 5,0 1)),((6 7,8 9,10 11,6 7)))",
97  "{\"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]]]]}",
98  "EPSG:4326", 0, 0);
99 
100  /* Empty GeometryCollection */
102  "GEOMETRYCOLLECTION EMPTY",
103  "{\"type\":\"GeometryCollection\",\"crs\":{\"type\":\"name\",\"properties\":{\"name\":\"EPSG:4326\"}},\"geometries\":[]}",
104  "EPSG:4326", 0, 0);
105 }
static void do_geojson_test(const char *exp, char *in, char *exp_srs, int precision, int has_bbox)
Definition: cu_in_geojson.c:21
Here is the call graph for this function:
Here is the caller graph for this function: