PostGIS  2.1.10dev-r@@SVN_REVISION@@
static void out_kml_test_precision ( void  )
static

Definition at line 78 of file cu_out_kml.c.

References do_kml_test().

Referenced by out_kml_suite_setup().

79 {
80  /* 0 precision, i.e a round */
82  "POINT(1.1111111111111 1.1111111111111)",
83  "<Point><coordinates>1,1</coordinates></Point>",
84  0);
85 
86  /* 3 digits precision */
88  "POINT(1.1111111111111 1.1111111111111)",
89  "<Point><coordinates>1.111,1.111</coordinates></Point>",
90  3);
91 
92  /* 9 digits precision */
94  "POINT(1.2345678901234 1.2345678901234)",
95  "<Point><coordinates>1.23456789,1.23456789</coordinates></Point>",
96  8);
97 
98  /* huge data */
100  "POINT(1E300 -1E300)",
101  "<Point><coordinates>1e+300,-1e+300</coordinates></Point>",
102  0);
103 }
static void do_kml_test(char *in, char *out, int precision)
Definition: cu_out_kml.c:21

Here is the call graph for this function:

Here is the caller graph for this function: