Add argument aliases to __init__ method for easier/more understandable introspection - addresses #29
This commit is contained in:
parent
544cbb249a
commit
47822d578e
1 changed files with 1 additions and 1 deletions
|
@ -145,7 +145,7 @@ void export_map()
|
|||
.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"
|
||||
"an srs string either with a Proj.4 epsg code ('+init=epsg:<code>')\n"
|
||||
"or with a Proj.4 literal ('+proj=<literal>').\n"
|
||||
|
|
Loading…
Reference in a new issue