PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ out_svg_test_relative()

static void out_svg_test_relative ( void  )
static

Definition at line 245 of file cu_out_svg.c.

References do_svg_test().

Referenced by out_svg_suite_setup().

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