+ add __len__ method
This commit is contained in:
parent
810b494b60
commit
12b6aceeee
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
;
|
||||
|
|
Loading…
Reference in a new issue