diff --git a/tests/visual_tests/grids/geojson-geometry-collection-256-256-1.0-grid-reference.json b/tests/visual_tests/grids/geojson-geometry-collection-256-256-1.0-grid-reference.json new file mode 100644 index 000000000..d28beb786 --- /dev/null +++ b/tests/visual_tests/grids/geojson-geometry-collection-256-256-1.0-grid-reference.json @@ -0,0 +1,73 @@ +{ + "keys": [ + "1", + "" + ], + "data": {}, + "grid": [ + " !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!", + " !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!", + "!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!", + "!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!", + "!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!", + "!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!", + "!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!", + "!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!", + "!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!", + "!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!", + "!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!", + "!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!", + "!!!!!!!!!!!! !!!!!!!!!!!!!!!!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!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!", + "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!", + "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!", + "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !", + "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! " + ] +} \ No newline at end of file diff --git a/tests/visual_tests/grids/geojson-geometry-collection-256-256-2.0-grid-reference.json b/tests/visual_tests/grids/geojson-geometry-collection-256-256-2.0-grid-reference.json new file mode 100644 index 000000000..13c093542 --- /dev/null +++ b/tests/visual_tests/grids/geojson-geometry-collection-256-256-2.0-grid-reference.json @@ -0,0 +1,73 @@ +{ + "keys": [ + "1", + "" + ], + "data": {}, + "grid": [ + " !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!", + " !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!", + " !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!", + "!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!", + "!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!", + "!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!", + "!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!", + "!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!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!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!", + "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!", + "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!", + "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!", + "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!", + "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!", + "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!", + "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ", + "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! " + ] +} \ No newline at end of file diff --git a/tests/visual_tests/images/geojson-geometry-collection-256-256-1.0-agg-reference.png b/tests/visual_tests/images/geojson-geometry-collection-256-256-1.0-agg-reference.png new file mode 100644 index 000000000..39e2e2e8a Binary files /dev/null and b/tests/visual_tests/images/geojson-geometry-collection-256-256-1.0-agg-reference.png differ diff --git a/tests/visual_tests/images/geojson-geometry-collection-256-256-1.0-cairo-reference.png b/tests/visual_tests/images/geojson-geometry-collection-256-256-1.0-cairo-reference.png new file mode 100644 index 000000000..76e947996 Binary files /dev/null and b/tests/visual_tests/images/geojson-geometry-collection-256-256-1.0-cairo-reference.png differ diff --git a/tests/visual_tests/images/geojson-geometry-collection-256-256-2.0-agg-reference.png b/tests/visual_tests/images/geojson-geometry-collection-256-256-2.0-agg-reference.png new file mode 100644 index 000000000..b35e9497e Binary files /dev/null and b/tests/visual_tests/images/geojson-geometry-collection-256-256-2.0-agg-reference.png differ diff --git a/tests/visual_tests/images/geojson-geometry-collection-256-256-2.0-cairo-reference.png b/tests/visual_tests/images/geojson-geometry-collection-256-256-2.0-cairo-reference.png new file mode 100644 index 000000000..07d78fbc5 Binary files /dev/null and b/tests/visual_tests/images/geojson-geometry-collection-256-256-2.0-cairo-reference.png differ diff --git a/tests/visual_tests/styles/geojson-geometry-collection.xml b/tests/visual_tests/styles/geojson-geometry-collection.xml new file mode 100644 index 000000000..5f4fbcf58 --- /dev/null +++ b/tests/visual_tests/styles/geojson-geometry-collection.xml @@ -0,0 +1,52 @@ + + + 256,256 + + + + + + style + + geojson + +{ + "type": "FeatureCollection", + "features": [ + { + "type": "Feature", + "properties": {}, + "geometry": { + "type": "GeometryCollection", + "geometries": [ + { + "type": "MultiPoint", + "coordinates": [ [5,0], [0,5], [1,2.5], [4,2.5] ] + }, + { + "type": "LineString", + "coordinates": [ + [ + 0, + 5 + ], + [ + 5, + 0 + ] + ] + } + ] + } + } + ] +} + + + +