save the maps in the right place for visual tests
This commit is contained in:
parent
5f4734ebe0
commit
c5c0f92247
3 changed files with 4 additions and 1 deletions
|
@ -1411,6 +1411,7 @@ if not preconfigured:
|
|||
pthread = '-pthread'
|
||||
|
||||
# Common debugging flags.
|
||||
# http://lists.fedoraproject.org/pipermail/devel/2010-November/144952.html
|
||||
debug_flags = '-g -fno-omit-frame-pointer -DDEBUG -DMAPNIK_DEBUG'
|
||||
ndebug_flags = '-DNDEBUG'
|
||||
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
#include <mapnik/text_placements/registry.hpp>
|
||||
#include <mapnik/text_placements/simple.hpp>
|
||||
#include <mapnik/text_placements/list.hpp>
|
||||
#include <mapnik/text_placements/dummy.hpp>
|
||||
|
||||
namespace mapnik
|
||||
{
|
||||
|
@ -33,6 +34,7 @@ registry::registry()
|
|||
{
|
||||
register_name("simple", &text_placements_simple::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)
|
||||
|
|
|
@ -60,6 +60,6 @@ for f in files:
|
|||
m = render(f[0], width[0], width[1])
|
||||
else:
|
||||
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()
|
||||
|
|
Loading…
Reference in a new issue