Changeset 790 for trunk/bindings/python/mapnik_query.cpp
- Timestamp:
- 01/12/09 19:56:09 (19 months ago)
- Files:
-
- 1 modified
-
trunk/bindings/python/mapnik_query.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bindings/python/mapnik_query.cpp
r313 r790 24 24 #include <boost/python.hpp> 25 25 #include <mapnik/query.hpp> 26 #include <mapnik/envelope.hpp> 26 27 27 28 void export_query() 28 29 { 30 using namespace boost::python; 31 29 32 using mapnik::query; 30 //class_<query>("Query",init< 33 using mapnik::Envelope; 34 35 class_<query>("Query", "a spatial query data object", 36 init<Envelope<double>,double>() ) 37 .add_property("resolution", &query::resolution) 38 .add_property("bbox", make_function(&query::get_bbox, 39 return_value_policy<copy_const_reference>()) ) 40 .add_property("property_names", make_function(&query::property_names, 41 return_value_policy<copy_const_reference>()) ) 42 .def("add_property_name", &query::add_property_name); 31 43 } 32 44
