Skip to content
Permalink
Browse files

Exclude raw layers from WMS GetCapabilities output.

  • Loading branch information...
sdlime committed May 9, 2017
1 parent c7c5254 commit 3d6cd8a386f1390aad395c0da5ff4d1d8f06b77b
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/service_wms.c
@@ -198,6 +198,11 @@ void _create_capabilities_wms(mapcache_context *ctx, mapcache_request_get_capabi
int i;
apr_hash_this(tileindex_index,&key,&keylen,(void**)&tileset);

if(tileset->format->type == GC_RAW) {
tileindex_index = apr_hash_next(tileindex_index);
continue; // WMS is not supported for raw layers
}

layerxml = ezxml_add_child(toplayer,"Layer",0);
ezxml_set_attr(layerxml, "cascaded", "1");
ezxml_set_attr(layerxml, "queryable", (tileset->source && tileset->source->info_formats)?"1":"0");

0 comments on commit 3d6cd8a

Please sign in to comment.
You can’t perform that action at this time.