revert pickling support on datsources since they can't be created directly from python - we now dump and load in the layer object via params as of r1149 - see #345
This commit is contained in:
parent
6825541057
commit
80a5bdf6e3
1 changed files with 0 additions and 11 deletions
|
@ -40,16 +40,6 @@ using mapnik::point_datasource;
|
|||
using mapnik::layer_descriptor;
|
||||
using mapnik::attribute_descriptor;
|
||||
|
||||
struct ds_pickle_suite : boost::python::pickle_suite
|
||||
{
|
||||
static boost::python::tuple
|
||||
getinitargs(const datasource& ds)
|
||||
{
|
||||
mapnik::parameters params = ds.params();
|
||||
return boost::python::make_tuple(params);
|
||||
}
|
||||
};
|
||||
|
||||
namespace
|
||||
{
|
||||
//user-friendly wrapper that uses Python dictionary
|
||||
|
@ -149,7 +139,6 @@ void export_datasource()
|
|||
|
||||
class_<datasource,boost::shared_ptr<datasource>,
|
||||
boost::noncopyable>("Datasource",no_init)
|
||||
.def_pickle(ds_pickle_suite())
|
||||
.def("envelope",&datasource::envelope)
|
||||
.def("descriptor",&datasource::get_descriptor) //todo
|
||||
.def("features",&datasource::features)
|
||||
|
|
Loading…
Reference in a new issue