On Thu, Mar 8, 2012 at 10:21 AM, Dharhas Pothina <
dharhas.poth...@twdb.texas.gov> wrote:
>
> + one on this issue. One of the big advantages of the nxutils points in
> poly is that you could pass it a large numpy array of points and get back a
> mask. We found this to be significantly faster than using looping through
> the single point in poly algorithms from packages like shapely. Echoing
> Jorge's question how would we do this using contains_point().
>
One could modify src/_path.cpp to expose a "points_in_path" method so the
looping would be done in C++. The underlying work is being done
in point_in_path_impl and exposed to python as point_in_path. It would
not be too much work to expose a points_in_path method, but we would have
to think about what arguments to take and to return. _path.cpp does not
currently depend on numpy, and doing things via python list would be slower
than what we currently have in nxutils which is array aware.
JDH
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users