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

Definition at line 246 of file cu_out_svg.c.

References do_svg_test().

Referenced by out_svg_suite_setup().

247 {
248  /* Linestring */
249  do_svg_test(
250  "LINESTRING(0 1,2 3,4 5)",
251  "M 0 -1 l 2 -2 2 -2",
252  0, 1);
253 
254  /* Polygon */
255  do_svg_test(
256  "POLYGON((0 1,2 3,4 5,0 1))",
257  "M 0 -1 l 2 -2 2 -2 z",
258  0, 1);
259 
260  /* Polygon - with internal ring */
261  do_svg_test(
262  "POLYGON((0 1,2 3,4 5,0 1),(6 7,8 9,10 11,6 7))",
263  "M 0 -1 l 2 -2 2 -2 z M 6 -7 l 2 -2 2 -2 z",
264  0, 1);
265 
266  /* MultiPoint */
267  do_svg_test(
268  "MULTIPOINT(0 1,2 3)",
269  "x=\"0\" y=\"-1\",x=\"2\" y=\"-3\"",
270  0, 1);
271 
272  /* MultiLine */
273  do_svg_test(
274  "MULTILINESTRING((0 1,2 3,4 5),(6 7,8 9,10 11))",
275  "M 0 -1 l 2 -2 2 -2 M 6 -7 l 2 -2 2 -2",
276  0, 1);
277 
278  /* MultiPolygon */
279  do_svg_test(
280  "MULTIPOLYGON(((0 1,2 3,4 5,0 1)),((6 7,8 9,10 11,6 7)))",
281  "M 0 -1 l 2 -2 2 -2 z M 6 -7 l 2 -2 2 -2 z",
282  0, 1);
283 
284  /* GeometryCollection */
285  do_svg_test(
286  "GEOMETRYCOLLECTION(POINT(0 1),LINESTRING(2 3,4 5))",
287  "x=\"0\" y=\"-1\";M 2 -3 l 2 -2",
288  0, 1);
289 }
static void do_svg_test(char *in, char *out, int precision, int relative)
Definition: cu_out_svg.c:21

Here is the call graph for this function:

Here is the caller graph for this function: