Changeset 1147
- Timestamp:
- 05/19/09 20:08:18 (15 months ago)
- Files:
-
- 1 modified
-
trunk/bindings/python/mapnik_coord.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bindings/python/mapnik_coord.cpp
r330 r1147 25 25 #include <mapnik/coord.hpp> 26 26 27 using mapnik::coord; 28 29 struct coord_pickle_suite : boost::python::pickle_suite 30 { 31 static boost::python::tuple 32 getinitargs(const coord<double,2>& c) 33 { 34 using namespace boost::python; 35 return boost::python::make_tuple(c.x,c.y); 36 } 37 }; 38 27 39 void export_coord() 28 40 { 29 41 using namespace boost::python; 30 using mapnik::coord;31 42 class_<coord<double,2> >("Coord",init<double,double>()) 43 .def_pickle(coord_pickle_suite()) 32 44 .def_readwrite("x", &coord<double,2>::x) 33 45 .def_readwrite("y", &coord<double,2>::y)
