+ add __len__ method

This commit is contained in:
Artem Pavlenko 2011-09-13 13:23:23 +00:00
parent 810b494b60
commit 12b6aceeee

View file

@ -84,6 +84,7 @@ void export_geometry()
class_<path_type,boost::noncopyable>("Path")
.def("__getitem__", getitem_impl,return_value_policy<reference_existing_object>())
.def("__len__", &path_type::size)
.def("from_wkt",from_wkt_impl)
.def("from_wkb",from_wkb_impl)
;