PostGIS 3.0.6dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ in_geojson_test_srid()

static void in_geojson_test_srid ( void  )
static

Definition at line 68 of file cu_in_geojson.c.

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");
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");
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");
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");
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");
99
100 /* Empty GeometryCollection */
102 "GEOMETRYCOLLECTION EMPTY",
103 "{\"type\":\"GeometryCollection\",\"crs\":{\"type\":\"name\",\"properties\":{\"name\":\"EPSG:4326\"}},\"geometries\":[]}",
104 "EPSG:4326");
105}
static void do_geojson_test(const char *exp, char *in, char *exp_srs)

References do_geojson_test().

Referenced by in_geojson_suite_setup().

Here is the call graph for this function:
Here is the caller graph for this function: