@@ -63,7 +63,7 @@ void parseMetadata(mapcache_context *ctx, ezxml_t node, apr_table_t *metadata)
6363void parseDimensions (mapcache_context * ctx , ezxml_t node , mapcache_tileset * tileset )
6464{
6565 ezxml_t dimension_node ;
66- ezxml_t wms_single_query_node ;
66+ ezxml_t wms_querybymap_node ;
6767 apr_array_header_t * dimensions = apr_array_make (ctx -> pool ,1 ,sizeof (mapcache_dimension * ));
6868 for (dimension_node = ezxml_child (node ,"dimension" ); dimension_node ; dimension_node = dimension_node -> next ) {
6969 char * name = (char * )ezxml_attr (dimension_node ,"name" );
@@ -121,23 +121,23 @@ void parseDimensions(mapcache_context *ctx, ezxml_t node, mapcache_tileset *tile
121121 return ;
122122 }
123123
124- dimension -> wms_single_query_minzoom = -1 ;
125- wms_single_query_node = ezxml_child (dimension_node ,"wms_single_query " );
126- if (wms_single_query_node && wms_single_query_node -> txt ) {
127- if (!strcasecmp (wms_single_query_node -> txt ,"true" )) {
128- const char * minzoom = ezxml_attr (wms_single_query_node ,"minzoom" );
129- dimension -> wms_single_query_minzoom = 0 ;
124+ dimension -> wms_querybymap_minzoom = -1 ;
125+ wms_querybymap_node = ezxml_child (dimension_node ,"wms_querybymap " );
126+ if (wms_querybymap_node && wms_querybymap_node -> txt ) {
127+ if (!strcasecmp (wms_querybymap_node -> txt ,"true" )) {
128+ const char * minzoom = ezxml_attr (wms_querybymap_node ,"minzoom" );
129+ dimension -> wms_querybymap_minzoom = 0 ;
130130 if (minzoom && * minzoom ) {
131131 char * endptr ;
132- dimension -> wms_single_query_minzoom = strtol (minzoom ,& endptr ,10 );
133- if (* endptr != 0 || dimension -> wms_single_query_minzoom < 0 ) {
134- ctx -> set_error (ctx , 400 , "failed to parse minzoom \"%s\" for <wms_single_query >"
132+ dimension -> wms_querybymap_minzoom = strtol (minzoom ,& endptr ,10 );
133+ if (* endptr != 0 || dimension -> wms_querybymap_minzoom < 0 ) {
134+ ctx -> set_error (ctx , 400 , "failed to parse minzoom \"%s\" for <wms_querybymap >"
135135 "expecting an integer starting from 0" ,minzoom );
136136 return ;
137137 }
138138 }
139- } else if (strcasecmp (wms_single_query_node -> txt ,"false" )) {
140- ctx -> set_error (ctx ,400 ,"failed to parse <wms_single_query > (%s), expecting \"true\" or \"false\"" ,wms_single_query_node -> txt );
139+ } else if (strcasecmp (wms_querybymap_node -> txt ,"false" )) {
140+ ctx -> set_error (ctx ,400 ,"failed to parse <wms_querybymap > (%s), expecting \"true\" or \"false\"" ,wms_querybymap_node -> txt );
141141 return ;
142142 }
143143 }
0 commit comments