PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ out_kml_test_precision()

static void out_kml_test_precision ( void  )
static

Definition at line 77 of file cu_out_kml.c.

References do_kml_test().

Referenced by out_kml_suite_setup().

78 {
79  /* 0 precision, i.e a round */
81  "POINT(1.1111111111111 1.1111111111111)",
82  "<Point><coordinates>1,1</coordinates></Point>",
83  0);
84 
85  /* 3 digits precision */
87  "POINT(1.1111111111111 1.1111111111111)",
88  "<Point><coordinates>1.111,1.111</coordinates></Point>",
89  3);
90 
91  /* 9 digits precision */
93  "POINT(1.2345678901234 1.2345678901234)",
94  "<Point><coordinates>1.23456789,1.23456789</coordinates></Point>",
95  8);
96 
97  /* huge data */
99  "POINT(1E300 -1E300)",
100  "<Point><coordinates>1e+300,-1e+300</coordinates></Point>",
101  0);
102 }
static void do_kml_test(char *in, char *out, int precision)
Definition: cu_out_kml.c:20
Here is the call graph for this function:
Here is the caller graph for this function: