@@ -200,7 +200,7 @@ void _create_capabilities_wms(mapcache_context *ctx, mapcache_request_get_capabi
200200
201201 if (tileset -> format -> type == GC_RAW ) {
202202 tileindex_index = apr_hash_next (tileindex_index );
203- continue ; // WMS is not supported for raw layers
203+ continue ; /* WMS is not supported for raw layers */
204204 }
205205
206206 layerxml = ezxml_add_child (toplayer ,"Layer" ,0 );
@@ -534,7 +534,7 @@ void _mapcache_service_wms_parse_request(mapcache_context *ctx, mapcache_service
534534 key = apr_strtok (layers , "," , & last ); /* extract first layer */
535535 }
536536 main_tileset = mapcache_configuration_get_tileset (config ,key );
537- if (!main_tileset ) {
537+ if (!main_tileset || main_tileset -> format -> type == GC_RAW ) {
538538 errcode = 404 ;
539539 errmsg = apr_psprintf (ctx -> pool ,"received wms request with invalid layer %s" , key );
540540 goto proxies ;
@@ -633,7 +633,7 @@ void _mapcache_service_wms_parse_request(mapcache_context *ctx, mapcache_service
633633 * this step is not done for the first tileset as we have already performed it
634634 */
635635 tileset = mapcache_configuration_get_tileset (config ,key );
636- if (!tileset ) {
636+ if (!tileset || tileset -> format -> type == GC_RAW ) {
637637 errcode = 404 ;
638638 errmsg = apr_psprintf (ctx -> pool ,"received wms request with invalid layer %s" , key );
639639 goto proxies ;
@@ -733,7 +733,7 @@ void _mapcache_service_wms_parse_request(mapcache_context *ctx, mapcache_service
733733 goto proxies ;
734734 } else {
735735 mapcache_tileset * tileset = mapcache_configuration_get_tileset (config ,str );
736- if (!tileset ) {
736+ if (!tileset || tileset -> format -> type == GC_RAW ) {
737737 errcode = 404 ;
738738 errmsg = apr_psprintf (ctx -> pool ,"received wms getfeatureinfo request with invalid layer %s" , str );
739739 goto proxies ;
0 commit comments