python : add comparison operators to Map/Layer/Datasource

This commit is contained in:
artemp 2014-05-28 15:40:59 +01:00
parent 7572ba58cb
commit 659a715fc5
3 changed files with 5 additions and 1 deletions

View file

@ -184,6 +184,7 @@ void export_datasource()
.def("params",make_function(params_const,return_value_policy<copy_const_reference>()),
"The configuration parameters of the data source. "
"These vary depending on the type of data source.")
.def(self == self)
;
def("CreateDatasource",&create_datasource);

View file

@ -375,6 +375,7 @@ void export_layer()
">>> lyr.styles[0]\n"
"'My Style'\n"
)
// comparison
.def(self == self)
;
}

View file

@ -528,5 +528,7 @@ void export_map()
">>> m.width\n"
"800\n"
)
// comparison
.def(self == self)
;
}