I have a list of 2d points [(x1,y1),(x2,y2),...,(xn,yn)]
in numpy, how do I get a list of points within the bounding box specified by the corners ((bx1,by1),(bx2,by2))
?
If this were C++ I would use the OGC "within" specification in boost geometry to filter the list.
Right now I'm just dealing with a list of indexes into an NxN 2d numpy array, so I expect this should just be 1-2 lines of code with numpy.