Function to filter search results further against feature bboxes */
| 762 | |
| 763 | /* Function to filter search results further against feature bboxes */ |
| 764 | void msFilterTreeSearch(shapefileObj *shp, ms_bitarray status, rectObj search_rect) |
| 765 | { |
| 766 | int i; |
| 767 | rectObj shape_rect; |
| 768 | |
| 769 | i = msGetNextBit(status, 0, shp->numshapes); |
| 770 | while(i >= 0) { |
| 771 | if(msSHPReadBounds(shp->hSHP, i, &shape_rect) == MS_SUCCESS) { |
| 772 | if(msRectOverlap(&shape_rect, &search_rect) != MS_TRUE) { |
| 773 | msSetBit(status, i, 0); |
| 774 | } |
| 775 | } |
| 776 | i = msGetNextBit(status, i+1, shp->numshapes); |
| 777 | } |
| 778 | |
| 779 | } |
no test coverage detected