** msIsLayerQueryable() returns MS_TRUE/MS_FALSE */
| 122 | ** msIsLayerQueryable() returns MS_TRUE/MS_FALSE |
| 123 | */ |
| 124 | int msIsLayerQueryable(layerObj *lp) |
| 125 | { |
| 126 | int i; |
| 127 | |
| 128 | if ( lp->type == MS_LAYER_TILEINDEX ) |
| 129 | return MS_FALSE; |
| 130 | |
| 131 | if(lp->template && strlen(lp->template) > 0) return MS_TRUE; |
| 132 | |
| 133 | for(i=0; i<lp->numclasses; i++) { |
| 134 | if(lp->class[i]->template && strlen(lp->class[i]->template) > 0) |
| 135 | return MS_TRUE; |
| 136 | } |
| 137 | |
| 138 | return MS_FALSE; |
| 139 | } |
| 140 | |
| 141 | static int addResult(resultCacheObj *cache, shapeObj *shape) |
| 142 | { |
no outgoing calls
no test coverage detected