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

◆ out_gml_test_precision()

static void out_gml_test_precision ( void  )
static

Definition at line 190 of file cu_out_gml.c.

191{
192 /* GML2 - 0 precision, i.e a round */
194 "POINT(1.1111111111111 1.1111111111111)",
195 "<gml:Point><gml:coordinates>1,1</gml:coordinates></gml:Point>",
196 NULL, 0);
197
198 /* GML3 - 0 precision, i.e a round */
200 "POINT(1.1111111111111 1.1111111111111)",
201 "<gml:Point><gml:pos srsDimension=\"2\">1 1</gml:pos></gml:Point>",
202 NULL, 0, 0);
203
204
205 /* GML2 - 3 digits precision */
207 "POINT(1.1111111111111 1.1111111111111)",
208 "<gml:Point><gml:coordinates>1.111,1.111</gml:coordinates></gml:Point>",
209 NULL, 3);
210
211 /* GML3 - 3 digits precision */
213 "POINT(1.1111111111111 1.1111111111111)",
214 "<gml:Point><gml:pos srsDimension=\"2\">1.111 1.111</gml:pos></gml:Point>",
215 NULL, 3, 0);
216
217
218 /* GML2 - 9 digits precision */
220 "POINT(1.2345678901234 1.2345678901234)",
221 "<gml:Point><gml:coordinates>1.23456789,1.23456789</gml:coordinates></gml:Point>",
222 NULL, 9);
223
224 /* GML3 - 9 digits precision */
226 "POINT(1.2345678901234 1.2345678901234)",
227 "<gml:Point><gml:pos srsDimension=\"2\">1.23456789 1.23456789</gml:pos></gml:Point>",
228 NULL, 9, 0);
229
230
231 /* GML2 - huge data */
233 "POINT(1E300 -1E300)",
234 "<gml:Point><gml:coordinates>1e+300,-1e+300</gml:coordinates></gml:Point>",
235 NULL, 0);
236
237 /* GML3 - huge data */
239 "POINT(1E300 -1E300)",
240 "<gml:Point><gml:pos srsDimension=\"2\">1e+300 -1e+300</gml:pos></gml:Point>",
241 NULL, 0, 0);
242}
static void do_gml3_test(char *in, char *out, char *srs, int precision, int is_geodetic)
Definition cu_out_gml.c:72
static void do_gml2_test(char *in, char *out, char *srs, int precision)
Definition cu_out_gml.c:21

References do_gml2_test(), and do_gml3_test().

Referenced by out_gml_suite_setup().

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