diff --git a/bindings/python/mapnik_geometry.cpp b/bindings/python/mapnik_geometry.cpp index 8a0f207cd..0883c2539 100644 --- a/bindings/python/mapnik_geometry.cpp +++ b/bindings/python/mapnik_geometry.cpp @@ -84,6 +84,7 @@ void export_geometry() class_("Path") .def("__getitem__", getitem_impl,return_value_policy()) + .def("__len__", &path_type::size) .def("from_wkt",from_wkt_impl) .def("from_wkb",from_wkb_impl) ;