<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!-- p { margin-top: 0px; margin-bottom: 0px; }--></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi,<br>
</p>
<p><br>
</p>
<p>We are using MapProxy to cache our WMS server. Many of the layers are available in multiple styles and we wish to cache all available styles. For example the layer GDPS.ETA_TT is available in the following styles:<br>
</p>
<ul dir="" class="" style="">
<li>​TEMPERATURE-LINEAR</li><li>​TEMPSUMMER</li><li>​TEMPSUMMER-LINEAR</li><li>​TEMPWINTER​</li><li>TEMPWINTER-LINEAR</li><li>TEMPERATURE</li></ul>
<div><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);">When I make a request with the styles parameter blank I receive the expected image. However, whenever I add a style to the request
 I receive an error saying </span><span style="font-size: 12pt;"><strong>StyleNotDefined">unsupported styles: TEMPSUMMER. </strong> </span><span style="font-size: 12pt;">A simplified version of the config I am using is below. A sample request with blank style
 parameter and a sample request with <strong>STYLE=TEMPSUMMER</strong> are also below.</span></div>
<div><br>
</div>
<div><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);">How do I setup these styles in the config?</span><br>
</div>
<div><br>
</div>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; margin: 0px;">
<font face="Times New Roman,serif" color="#212121"><font face="Calibri,sans-serif" color="black">Thank you for your time,</font></font></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; margin: 0px;">
<font face="Times New Roman,serif" color="#212121"><font face="Calibri,sans-serif" color="black">Tom Cooney​​</font></font></div>
</div>
<div><br>
</div>
<div>caches:<br>
  GDPS.ETA_TT_cache:<br>
</div>
<div>    sources:<br>
</div>
<div>    - GDPS.ETA_TT_source<br>
</div>
<div>layers:<br>
</div>
<div>  name: GDPS.ETA_TT<br>
</div>
<div>  sources:<br>
</div>
<div>  - GDPS.ETA_TT_cache<br>
</div>
<div>sources:<br>
</div>
<div>  GDPS.ETA__TT_source:<br>
</div>
<div>    req:<br>
</div>
<div>      layers: GDPS.ETA_TT<br>
</div>
<div>      url: https ....<br>
</div>
<div>      styles: TEMPSUMMER<br>
</div>
<div><br>
</div>
<div>Request with blank styles parameter (returns the image as expected)<br>
</div>
<div><a href="http://geomet-dev-03.cmc.ec.gc.ca:8000/service?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=-90,-180,90,180&CRS=EPSG:4326&WIDTH=1351&HEIGHT=676&LAYERS=GDPS.ETA_TT&STYLES=&FORMAT=image/png&DPI=96&MAP_RESOLUTION=96&FORMAT_OPTIONS=dpi:96&TRANSPARENT=TRUE&TIME=2021-02-26T00:00:00Z">http://geomet-dev-03.cmc.ec.gc.ca:8000/service?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=-90,-180,90,180&CRS=EPSG:4326&WIDTH=1351&HEIGHT=676&LAYERS=GDPS.ETA_TT&STYLES=&FORMAT=image/png&DPI=96&MAP_RESOLUTION=96&FORMAT_OPTIONS=dpi:96&TRANSPARENT=TRUE&TIME=2021-02-26T00:00:00Z</a><br>
</div>
<div><br>
</div>
<div>Request with a style (returns <strong style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);">StyleNotDefined</strong> <strong></strong>error)<br>
</div>
<div><a href="http://geomet-dev-03.cmc.ec.gc.ca:8000/service?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=-90,-180,90,180&CRS=EPSG:4326&WIDTH=1351&HEIGHT=676&LAYERS=GDPS.ETA_TT&STYLES=TEMPSUMMER&FORMAT=image/png&DPI=96&MAP_RESOLUTION=96&FORMAT_OPTIONS=dpi:96&TRANSPARENT=T">http://geomet-dev-03.cmc.ec.gc.ca:8000/service?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=-90,-180,90,180&CRS=EPSG:4326&WIDTH=1351&HEIGHT=676&LAYERS=GDPS.ETA_TT&STYLES=TEMPSUMMER&FORMAT=image/png&DPI=96&MAP_RESOLUTION=96&FORMAT_OPTIONS=dpi:96&TRANSPARENT=T</a><br>
</div>
<div><br>
</div>
<div><br>
</div>
</body>
</html>