diff --git a/bindings/python/mapnik_image.cpp b/bindings/python/mapnik_image.cpp index fe6b4a672..c6f30e905 100644 --- a/bindings/python/mapnik_image.cpp +++ b/bindings/python/mapnik_image.cpp @@ -54,7 +54,6 @@ using mapnik::image_reader; using mapnik::get_image_reader; using mapnik::type_from_filename; using mapnik::save_to_file; -using mapnik::save_to_string; using namespace boost::python; @@ -74,7 +73,7 @@ PyObject* tostring1( image_32 const& im) // encode (png,jpeg) PyObject* tostring2(image_32 const & im, std::string const& format) { - std::string s = save_to_string(im, format); + std::string s = mapnik::save_to_string(im.data(), format); return #if PY_VERSION_HEX >= 0x03000000 ::PyBytes_FromStringAndSize @@ -86,7 +85,7 @@ PyObject* tostring2(image_32 const & im, std::string const& format) PyObject* tostring3(image_32 const & im, std::string const& format, mapnik::rgba_palette const& pal) { - std::string s = save_to_string(im, format, pal); + std::string s = mapnik::save_to_string(im.data(), format, pal); return #if PY_VERSION_HEX >= 0x03000000 ::PyBytes_FromStringAndSize diff --git a/tests/cxx/tiff_io.cpp b/tests/cxx/tiff_io.cpp index 883c1ae26..37cfdddd4 100644 --- a/tests/cxx/tiff_io.cpp +++ b/tests/cxx/tiff_io.cpp @@ -1,8 +1,12 @@ + +#if defined(HAVE_TIFF) + #include "catch.hpp" #include #include #include + #include #include "../../src/tiff_reader.cpp" @@ -273,4 +277,6 @@ SECTION("gray32f tiled") { TIFF_READ_ONE_PIXEL } -} \ No newline at end of file +} + +#endif diff --git a/tests/visual_tests/styles/orientation.xml b/tests/visual_tests/styles/orientation.xml index 97aa91cb8..387b5c8c2 100644 --- a/tests/visual_tests/styles/orientation.xml +++ b/tests/visual_tests/styles/orientation.xml @@ -17,12 +17,12 @@