diff --git a/tests/visual_tests/grids/shield-on-line-and-avoid-edges-512-512-1.0-grid-reference.json b/tests/visual_tests/grids/shield-on-line-and-avoid-edges-512-512-1.0-grid-reference.json new file mode 100644 index 000000000..0df919cc3 --- /dev/null +++ b/tests/visual_tests/grids/shield-on-line-and-avoid-edges-512-512-1.0-grid-reference.json @@ -0,0 +1,137 @@ +{ + "keys": [ + "", + "1" + ], + "data": {}, + "grid": [ + " ", + " ", + " ", + " !!!! ", + " !!!!!!!! ", + " !!!!!!!!! ", + " !!!!!!!!!!! ", + " !!!!!!!!!!! ", + " !!!!!!!!!!! ", + " !!!!!!!!!!!!! ", + " !!!!!!!!!!!!! ", + " !!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!! !!! ", + " !!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!! !!!!! ", + " !!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!! !!!!!!! ", + " !!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!! !!!!!!! ", + " !!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!! !!!!!!!! ", + " !!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!! !!!!!!!!!!! !", + " !!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!! !!!!!!!!!!!! ! ", + " !!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!! !!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!! !!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!! !!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!! !!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!! !!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!! !!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!! !!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ", + " !!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ", + " !!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ", + " !!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ", + " !!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ", + " !!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ", + " !!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ", + " !!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!! ", + " !!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!! ", + " ! !!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!! ", + " !!!!! !!!!!!!!!!!!!!!!!!!!!!!! ", + "! !!! !!!!!!!!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!!! ", + " !!!!!!!!!!!!!! ", + " !!!!!!!!!! ", + " !!!!!!!!! ", + " !!!!!!! ", + " !!!!! ", + " !!! ", + " " + ] +} \ No newline at end of file diff --git a/tests/visual_tests/images/shield-on-line-and-avoid-edges-512-512-1.0-agg-reference.png b/tests/visual_tests/images/shield-on-line-and-avoid-edges-512-512-1.0-agg-reference.png new file mode 100644 index 000000000..fc8ed6026 Binary files /dev/null and b/tests/visual_tests/images/shield-on-line-and-avoid-edges-512-512-1.0-agg-reference.png differ diff --git a/tests/visual_tests/images/shield-on-line-and-avoid-edges-512-512-1.0-cairo-reference.png b/tests/visual_tests/images/shield-on-line-and-avoid-edges-512-512-1.0-cairo-reference.png new file mode 100644 index 000000000..fb8081123 Binary files /dev/null and b/tests/visual_tests/images/shield-on-line-and-avoid-edges-512-512-1.0-cairo-reference.png differ diff --git a/tests/visual_tests/images/shield-on-line-and-avoid-edges-512-512-2.0-agg-reference.png b/tests/visual_tests/images/shield-on-line-and-avoid-edges-512-512-2.0-agg-reference.png new file mode 100644 index 000000000..09b414e37 Binary files /dev/null and b/tests/visual_tests/images/shield-on-line-and-avoid-edges-512-512-2.0-agg-reference.png differ diff --git a/tests/visual_tests/images/shield-on-line-and-avoid-edges-512-512-2.0-cairo-reference.png b/tests/visual_tests/images/shield-on-line-and-avoid-edges-512-512-2.0-cairo-reference.png new file mode 100644 index 000000000..cb05b77a8 Binary files /dev/null and b/tests/visual_tests/images/shield-on-line-and-avoid-edges-512-512-2.0-cairo-reference.png differ diff --git a/tests/visual_tests/styles/shield-on-line-and-avoid-edges.xml b/tests/visual_tests/styles/shield-on-line-and-avoid-edges.xml new file mode 100644 index 000000000..22dd1f464 --- /dev/null +++ b/tests/visual_tests/styles/shield-on-line-and-avoid-edges.xml @@ -0,0 +1,33 @@ + + + + + line + point-placement + + csv + ../data/marker-on-line.csv + | + + + diff --git a/tests/visual_tests/test.py b/tests/visual_tests/test.py index 8b7639f10..3f8796d6f 100755 --- a/tests/visual_tests/test.py +++ b/tests/visual_tests/test.py @@ -269,7 +269,8 @@ files = { 'line-smooth-and-offset':{'sizes':[(512,512)]}, 'line-pattern-smooth-and-offset':{'sizes':[(512,512)]}, 'halo-comp-op-on-satellite':{'sizes':[(450,450)]}, - 'marker-whole-multi-polygon':{'sizes':[(512,512)]} + 'marker-whole-multi-polygon':{'sizes':[(512,512)]}, + 'shield-on-line-and-avoid-edges':{'sizes':[(512,512)]}, } class Reporting: