Changeset 1156
- Timestamp:
- 05/24/09 01:49:03 (14 months ago)
- Files:
-
- 1 modified
-
trunk/bindings/python/mapnik_query.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bindings/python/mapnik_query.cpp
r790 r1156 25 25 #include <mapnik/query.hpp> 26 26 #include <mapnik/envelope.hpp> 27 using mapnik::query; 28 using mapnik::Envelope; 29 30 struct query_pickle_suite : boost::python::pickle_suite 31 { 32 static boost::python::tuple 33 getinitargs(const query& q) 34 { 35 return boost::python::make_tuple(q.get_bbox(),q.resolution()); 36 } 37 }; 27 38 28 39 void export_query() … … 30 41 using namespace boost::python; 31 42 32 using mapnik::query;33 using mapnik::Envelope;34 35 43 class_<query>("Query", "a spatial query data object", 36 44 init<Envelope<double>,double>() ) 45 .def_pickle(query_pickle_suite()) 37 46 .add_property("resolution", &query::resolution) 38 47 .add_property("bbox", make_function(&query::get_bbox,
