| 173 | /************************************************************************/ |
| 174 | |
| 175 | static void msRasterLayerInfoInitialize( layerObj *layer ) |
| 176 | |
| 177 | { |
| 178 | rasterLayerInfo *rlinfo = (rasterLayerInfo *) layer->layerinfo; |
| 179 | |
| 180 | if( rlinfo != NULL ) |
| 181 | return; |
| 182 | |
| 183 | rlinfo = (rasterLayerInfo *) msSmallCalloc(1,sizeof(rasterLayerInfo)); |
| 184 | layer->layerinfo = rlinfo; |
| 185 | |
| 186 | rlinfo->band_count = -1; |
| 187 | rlinfo->raster_query_mode = RQM_ENTRY_PER_PIXEL; |
| 188 | rlinfo->range_mode = -1; /* inactive */ |
| 189 | rlinfo->refcount = 0; |
| 190 | rlinfo->shape_tolerance = 0.0; |
| 191 | |
| 192 | /* We need to do this or the layer->layerinfo will be interpreted */ |
| 193 | /* as shapefile access info because the default connectiontype is */ |
| 194 | /* MS_SHAPEFILE. */ |
| 195 | if (layer->connectiontype != MS_WMS) |
| 196 | layer->connectiontype = MS_RASTER; |
| 197 | |
| 198 | rlinfo->query_result_hard_max = 1000000; |
| 199 | |
| 200 | if( CSLFetchNameValue( layer->processing, "RASTER_QUERY_MAX_RESULT" ) |
| 201 | != NULL ) |
| 202 | { |
| 203 | rlinfo->query_result_hard_max = |
| 204 | atoi(CSLFetchNameValue( layer->processing, "RASTER_QUERY_MAX_RESULT" )); |
| 205 | } |
| 206 | } |
| 207 | |
| 208 | /************************************************************************/ |
| 209 | /* msRasterQueryAddPixel() */ |
no test coverage detected