Permalink
Browse files

WMS capabilities: automatically add 'application/json' to GetMap form…

…ats if UTFGRID OUPUTFORMAT is specified (fixes #5560)
  • Loading branch information...
rouault committed Mar 8, 2018
1 parent 4e4885f commit e78e26fbc50fefed6d26b7d88acba3bbc680e752
Showing with 2 additions and 1 deletion.
  1. +2 −1 mapoutput.c
@@ -904,7 +904,8 @@ void msGetOutputFormatMimeListWMS( mapObj *map, char **mime_list, int max_mime )
strcasecmp(map->outputformatlist[i]->driver, "CAIRO/SVG")==0 ||
strcasecmp(map->outputformatlist[i]->driver, "CAIRO/PDF")==0 ||
strcasecmp(map->outputformatlist[i]->driver, "kml")==0 ||
strcasecmp(map->outputformatlist[i]->driver, "kmz")==0))
strcasecmp(map->outputformatlist[i]->driver, "kmz")==0 ||
strcasecmp(map->outputformatlist[i]->driver, "UTFGRID")==0))
mime_list[mime_count++] = map->outputformatlist[i]->mimetype;
}
}

0 comments on commit e78e26f

Please sign in to comment.