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

◆ test_sfs_11()

static void test_sfs_11 ( void  )
static

Definition at line 110 of file cu_force_sfs.c.

111{
112 do_geom_test("POINT(1 2)",
113 "POINT(1 2)");
114
115 do_geom_test("LINESTRING(1 2,3 4)",
116 "LINESTRING(1 2,3 4)");
117
118 do_geom_test("POLYGON((1 2,3 4,5 6,1 2))",
119 "POLYGON((1 2,3 4,5 6,1 2))");
120
121 do_geom_test("POLYGON((1 2,3 4,5 6,1 2),(7 8,9 10,11 12,7 8))",
122 "POLYGON((1 2,3 4,5 6,1 2),(7 8,9 10,11 12,7 8))");
123
124 do_geom_test("MULTIPOINT(1 2,3 4)",
125 "MULTIPOINT(1 2,3 4)");
126
127 do_geom_test("MULTILINESTRING((1 2,3 4),(5 6,7 8))",
128 "MULTILINESTRING((1 2,3 4),(5 6,7 8))");
129
130 do_geom_test("MULTIPOLYGON(((1 2,3 4,5 6,1 2)),((7 8,9 10,11 12,7 8)))",
131 "MULTIPOLYGON(((1 2,3 4,5 6,1 2)),((7 8,9 10,11 12,7 8)))");
132
133 do_geom_test("MULTIPOLYGON(((1 2,3 4,5 6,1 2),(7 8,9 10,11 12,7 8)),((13 14,15 16,17 18,13 14)))",
134 "MULTIPOLYGON(((1 2,3 4,5 6,1 2),(7 8,9 10,11 12,7 8)),((13 14,15 16,17 18,13 14)))");
135
136 do_geom_test("GEOMETRYCOLLECTION(POINT(1 2),LINESTRING(3 4,5 6))",
137 "GEOMETRYCOLLECTION(POINT(1 2),LINESTRING(3 4,5 6))");
138
139 do_geom_test("GEOMETRYCOLLECTION EMPTY",
140 "GEOMETRYCOLLECTION EMPTY");
141
142 /* SRID */
143 do_geom_test("SRID=4326;GEOMETRYCOLLECTION EMPTY",
144 "SRID=4326;GEOMETRYCOLLECTION EMPTY");
145
146 do_geom_test("SRID=4326;POINT(1 2)",
147 "SRID=4326;POINT(1 2)");
148
149
150 /* 3D and 4D */
151 /* SFS 1.2 is only 2D but we choose here to keep 3D and 4D,
152 and let the user use force_2d if he want/need it */
153 do_geom_test("POINT(1 2 3)",
154 "POINT(1 2 3)");
155
156 do_geom_test("POINTM(1 2 3)",
157 "POINTM(1 2 3)");
158
159 do_geom_test("POINT(1 2 3 4)",
160 "POINT(1 2 3 4)");
161}
static void do_geom_test(char *in, char *out)

References do_geom_test().

Referenced by force_sfs_suite_setup().

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