From 3d4fbf03d2e9f228c679f1af8d2ef0b32b8ccd2b Mon Sep 17 00:00:00 2001 From: Hermann Kraus Date: Thu, 12 Aug 2010 01:42:33 +0000 Subject: [PATCH] Add docstrings. --- bindings/python/mapnik_map.cpp | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/bindings/python/mapnik_map.cpp b/bindings/python/mapnik_map.cpp index 4aa44830b..40c8b545f 100644 --- a/bindings/python/mapnik_map.cpp +++ b/bindings/python/mapnik_map.cpp @@ -350,10 +350,21 @@ void export_map() ">>> m.zoom_to_box(extent)\n" ) .def("get_metawriter_property", &Map::get_metawriter_property, - "TODO (Herm)" + "Reads a metawriter property.\n" + "These properties are completely userdefined and can be used for" + "creating filenames, etc." ) .def("set_metawriter_property", &Map::set_metawriter_property, - "TODO (Herm)" + "Sets a metawriter property.\n" + "These properties are completely userdefined and can be used for" + "creating filenames, etc.\n" + "\n" + "Usage:\n" + ">>> map.set_metawriter_property(\"x\", str(x))\n" + ">>> map.set_metawriter_property(\"y\", str(y))\n" + ">>> map.set_metawriter_property(\"z\", str(z))\n" + "\n" + "Use a path like \"[z]/[x]/[y].json\" to create filenames.\n" )