diff --git a/tests/python_tests/raster_symbolizer_test.py b/tests/python_tests/raster_symbolizer_test.py index 21e2b26f3..00f200f98 100644 --- a/tests/python_tests/raster_symbolizer_test.py +++ b/tests/python_tests/raster_symbolizer_test.py @@ -156,8 +156,10 @@ def test_raster_warping(): _map.append_style('foo', style) lyr.styles.append('foo') _map.layers.append(lyr) - prj_trans = mapnik.ProjTransform(mapnik.Projection(mapSrs), - mapnik.Projection(lyrSrs)) + map_proj = mapnik.Projection(mapSrs) + layer_proj = mapnik.Projection(lyrSrs) + prj_trans = mapnik.ProjTransform(map_proj, + layer_proj) _map.zoom_to_box(prj_trans.backward(lyr.envelope())) im = mapnik.Image(_map.width,_map.height)