* Generic function to render raster layers. */
| 1318 | * Generic function to render raster layers. |
| 1319 | */ |
| 1320 | int msDrawRasterLayer(mapObj *map, layerObj *layer, imageObj *image) |
| 1321 | { |
| 1322 | if (image && map && layer) |
| 1323 | { |
| 1324 | if( MS_RENDERER_PLUGIN(image->format) ) |
| 1325 | { |
| 1326 | return msDrawRasterLayerPlugin(map, layer, image); |
| 1327 | } |
| 1328 | else if( MS_RENDERER_RAWDATA(image->format) ) |
| 1329 | return msDrawRasterLayerLow(map, layer, image, NULL); |
| 1330 | } |
| 1331 | |
| 1332 | return MS_FAILURE; |
| 1333 | } |
| 1334 | |
| 1335 | |
| 1336 | /** |
no test coverage detected