From: Benjamin R. <ben...@ou...> - 2012-03-08 16:32:59
|
On Thu, Mar 8, 2012 at 10:21 AM, Dharhas Pothina < Dha...@tw...> 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(). > > > - dharhas > > > > >>> Jorge Scandaliaris <jor...@ya...> 3/8/2012 3:33 AM >>> > > Benjamin Root <ben.root@...> writes: > > <snip> > > > > Essentially, you make a Path object using the vertices, and then use its > > contains_point() method. > > Ben Root > > > > OK, but given that contains_point works with a *single* point at a time, I > have > to call it for all my points which is a bit more cumbersome, or am I > missing > something? > > Jorge > > > +1 as well. I just took another look at the Path object and I see no such function. The lack of this function is a problem for me as well in my existing apps. In order to deprecate nxutils, this functionality needs to be added to Path. Otherwise, nxutils *must* be reinstated before the next release. Ben Root |