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

◆ out_gml_test_precision()

static void out_gml_test_precision ( void  )
static

Definition at line 140 of file cu_out_gml.c.

141{
142 /* GML2 - 0 precision, i.e a round */
144 "POINT(1.1111111111111 1.1111111111111)",
145 "<gml:Point><gml:coordinates>1,1</gml:coordinates></gml:Point>",
146 NULL, 0);
147
148 /* GML3 - 0 precision, i.e a round */
150 "POINT(1.1111111111111 1.1111111111111)",
151 "<gml:Point><gml:pos srsDimension=\"2\">1 1</gml:pos></gml:Point>",
152 NULL, 0, 0);
153
154
155 /* GML2 - 3 digits precision */
157 "POINT(1.1111111111111 1.1111111111111)",
158 "<gml:Point><gml:coordinates>1.111,1.111</gml:coordinates></gml:Point>",
159 NULL, 3);
160
161 /* GML3 - 3 digits precision */
163 "POINT(1.1111111111111 1.1111111111111)",
164 "<gml:Point><gml:pos srsDimension=\"2\">1.111 1.111</gml:pos></gml:Point>",
165 NULL, 3, 0);
166
167
168 /* GML2 - 9 digits precision */
170 "POINT(1.2345678901234 1.2345678901234)",
171 "<gml:Point><gml:coordinates>1.23456789,1.23456789</gml:coordinates></gml:Point>",
172 NULL, 9);
173
174 /* GML3 - 9 digits precision */
176 "POINT(1.2345678901234 1.2345678901234)",
177 "<gml:Point><gml:pos srsDimension=\"2\">1.23456789 1.23456789</gml:pos></gml:Point>",
178 NULL, 9, 0);
179
180
181 /* GML2 - huge data */
183 "POINT(1E300 -1E300)",
184 "<gml:Point><gml:coordinates>1e+300,-1e+300</gml:coordinates></gml:Point>",
185 NULL, 0);
186
187 /* GML3 - huge data */
189 "POINT(1E300 -1E300)",
190 "<gml:Point><gml:pos srsDimension=\"2\">1e+300 -1e+300</gml:pos></gml:Point>",
191 NULL, 0, 0);
192}
static void do_gml3_test(char *in, char *out, char *srs, int precision, int is_geodetic)
Definition cu_out_gml.c:54
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: