PostGIS  3.1.6dev-r@@SVN_REVISION@@

◆ out_svg_test_relative()

static void out_svg_test_relative ( void  )
static

Definition at line 229 of file cu_out_svg.c.

230 {
231  /* Linestring */
232  do_svg_test(
233  "LINESTRING(0 1,2 3,4 5)",
234  "M 0 -1 l 2 -2 2 -2",
235  0, 1);
236 
237  /* Polygon */
238  do_svg_test(
239  "POLYGON((0 1,2 3,4 5,0 1))",
240  "M 0 -1 l 2 -2 2 -2 z",
241  0, 1);
242 
243  /* Polygon - with internal ring */
244  do_svg_test(
245  "POLYGON((0 1,2 3,4 5,0 1),(6 7,8 9,10 11,6 7))",
246  "M 0 -1 l 2 -2 2 -2 z M 6 -7 l 2 -2 2 -2 z",
247  0, 1);
248 
249  /* MultiPoint */
250  do_svg_test(
251  "MULTIPOINT(0 1,2 3)",
252  "x=\"0\" y=\"-1\",x=\"2\" y=\"-3\"",
253  0, 1);
254 
255  /* MultiLine */
256  do_svg_test(
257  "MULTILINESTRING((0 1,2 3,4 5),(6 7,8 9,10 11))",
258  "M 0 -1 l 2 -2 2 -2 M 6 -7 l 2 -2 2 -2",
259  0, 1);
260 
261  /* MultiPolygon */
262  do_svg_test(
263  "MULTIPOLYGON(((0 1,2 3,4 5,0 1)),((6 7,8 9,10 11,6 7)))",
264  "M 0 -1 l 2 -2 2 -2 z M 6 -7 l 2 -2 2 -2 z",
265  0, 1);
266 
267  /* GeometryCollection */
268  do_svg_test(
269  "GEOMETRYCOLLECTION(POINT(0 1),LINESTRING(2 3,4 5))",
270  "x=\"0\" y=\"-1\";M 2 -3 l 2 -2",
271  0, 1);
272 }
static void do_svg_test(char *in, char *out, int precision, int relative)
Definition: cu_out_svg.c:20

References do_svg_test().

Referenced by out_svg_suite_setup().

Here is the call graph for this function:
Here is the caller graph for this function: