From 5a2e437e217ce1b75e5bcc2a39530c706098a601 Mon Sep 17 00:00:00 2001 From: Artem Pavlenko Date: Tue, 3 Oct 2006 10:02:14 +0000 Subject: [PATCH] reflect load/save map methods in python --- bindings/python/mapnik_python.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bindings/python/mapnik_python.cpp b/bindings/python/mapnik_python.cpp index 441b1ae62..b159da536 100644 --- a/bindings/python/mapnik_python.cpp +++ b/bindings/python/mapnik_python.cpp @@ -51,6 +51,8 @@ void export_font_engine(); #include #include #include +#include +#include void render_to_file(const mapnik::Map& map, const std::string& file, @@ -95,6 +97,8 @@ BOOST_PYTHON_MODULE(_mapnik) using mapnik::datasource; using mapnik::coord; using mapnik::filter_ptr; + using mapnik::load_map; + using mapnik::save_map; export_query(); @@ -141,5 +145,9 @@ BOOST_PYTHON_MODULE(_mapnik) def("render_to_file",&render_to_file); def("render",&render); + + def("load_map",&load_map,"load Map object from XML"); + def("save_map",&load_map,"sace Map object to XML"); + register_ptr_to_python(); }