python : add comparison operators to Map/Layer/Datasource
This commit is contained in:
parent
7572ba58cb
commit
659a715fc5
3 changed files with 5 additions and 1 deletions
|
@ -184,6 +184,7 @@ void export_datasource()
|
||||||
.def("params",make_function(params_const,return_value_policy<copy_const_reference>()),
|
.def("params",make_function(params_const,return_value_policy<copy_const_reference>()),
|
||||||
"The configuration parameters of the data source. "
|
"The configuration parameters of the data source. "
|
||||||
"These vary depending on the type of data source.")
|
"These vary depending on the type of data source.")
|
||||||
|
.def(self == self)
|
||||||
;
|
;
|
||||||
|
|
||||||
def("CreateDatasource",&create_datasource);
|
def("CreateDatasource",&create_datasource);
|
||||||
|
|
|
@ -375,6 +375,7 @@ void export_layer()
|
||||||
">>> lyr.styles[0]\n"
|
">>> lyr.styles[0]\n"
|
||||||
"'My Style'\n"
|
"'My Style'\n"
|
||||||
)
|
)
|
||||||
|
// comparison
|
||||||
|
.def(self == self)
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
|
@ -528,5 +528,7 @@ void export_map()
|
||||||
">>> m.width\n"
|
">>> m.width\n"
|
||||||
"800\n"
|
"800\n"
|
||||||
)
|
)
|
||||||
|
// comparison
|
||||||
|
.def(self == self)
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue