** Performs a spatial, and optionally an attribute based feature search. The function basically ** prepares things so that candidate features can be accessed by query or drawing functions. For ** OGR and shapefiles this sets an internal bit vector that indicates whether a particular feature ** is to processed. For SDE it executes an SQL statement on the SDE server. Once run the msLayerNextShape **
| 131 | ** connection type where this is feasible. |
| 132 | */ |
| 133 | int msLayerWhichShapes(layerObj *layer, rectObj rect, int isQuery) |
| 134 | { |
| 135 | if ( ! layer->vtable) { |
| 136 | int rv = msInitializeVirtualTable(layer); |
| 137 | if (rv != MS_SUCCESS) |
| 138 | return rv; |
| 139 | } |
| 140 | return layer->vtable->LayerWhichShapes(layer, rect, isQuery); |
| 141 | } |
| 142 | |
| 143 | /* |
| 144 | ** Called after msWhichShapes has been called to actually retrieve shapes within a given area |
no test coverage detected