From c92c8f1bfd0ff79af1901ea811937360c9bb4c29 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Sun, 27 Jan 2013 17:27:24 -0800 Subject: [PATCH] define projection objects before transform to ensure they stay in scope --- tests/python_tests/raster_symbolizer_test.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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)