save the maps in the right place for visual tests

This commit is contained in:
Dane Springmeyer 2012-03-08 17:04:51 -08:00
parent 5f4734ebe0
commit c5c0f92247
3 changed files with 4 additions and 1 deletions

View file

@ -1411,6 +1411,7 @@ if not preconfigured:
pthread = '-pthread' pthread = '-pthread'
# Common debugging flags. # Common debugging flags.
# http://lists.fedoraproject.org/pipermail/devel/2010-November/144952.html
debug_flags = '-g -fno-omit-frame-pointer -DDEBUG -DMAPNIK_DEBUG' debug_flags = '-g -fno-omit-frame-pointer -DDEBUG -DMAPNIK_DEBUG'
ndebug_flags = '-DNDEBUG' ndebug_flags = '-DNDEBUG'

View file

@ -23,6 +23,7 @@
#include <mapnik/text_placements/registry.hpp> #include <mapnik/text_placements/registry.hpp>
#include <mapnik/text_placements/simple.hpp> #include <mapnik/text_placements/simple.hpp>
#include <mapnik/text_placements/list.hpp> #include <mapnik/text_placements/list.hpp>
#include <mapnik/text_placements/dummy.hpp>
namespace mapnik namespace mapnik
{ {
@ -33,6 +34,7 @@ registry::registry()
{ {
register_name("simple", &text_placements_simple::from_xml); register_name("simple", &text_placements_simple::from_xml);
register_name("list", &text_placements_list::from_xml); register_name("list", &text_placements_list::from_xml);
register_name("dummy", &text_placements_list::from_xml);
} }
void registry::register_name(std::string name, from_xml_function_ptr ptr, bool overwrite) void registry::register_name(std::string name, from_xml_function_ptr ptr, bool overwrite)

View file

@ -60,6 +60,6 @@ for f in files:
m = render(f[0], width[0], width[1]) m = render(f[0], width[0], width[1])
else: else:
m = render(f[0], width) m = render(f[0], width)
mapnik.save_map(m, "%s-out.xml" % f[0]) mapnik.save_map(m, os.path.join(dirname,"%s-out.xml" % f[0]))
summary() summary()