Add argument aliases to __init__ method for easier/more understandable introspection - addresses #29

This commit is contained in:
Dane Springmeyer 2009-04-07 23:17:57 +00:00
parent 544cbb249a
commit 47822d578e

View file

@ -145,7 +145,7 @@ void export_map()
.def(vector_indexing_suite<std::vector<Layer> >()) .def(vector_indexing_suite<std::vector<Layer> >())
; ;
class_<Map>("Map","The map object.",init<int,int,optional<std::string const&> >( class_<Map>("Map","The map object.",init<int,int,optional<std::string const&> >(args("Map","width","height","srs"),
"Create a Map with a width and height as integers and, optionally,\n" "Create a Map with a width and height as integers and, optionally,\n"
"an srs string either with a Proj.4 epsg code ('+init=epsg:<code>')\n" "an srs string either with a Proj.4 epsg code ('+init=epsg:<code>')\n"
"or with a Proj.4 literal ('+proj=<literal>').\n" "or with a Proj.4 literal ('+proj=<literal>').\n"