<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>Lars,</div>
<div><br>
</div>
<div>A WMS map can support multiple SRS's. Just list all the ones you want in the METADATA block. Look at <a href="http://mapserver.org/ogc/wms_server.html">http://mapserver.org/ogc/wms_server.html</a> and specifically the Map PROJECTION and wms_srs metadata.
 From the example, you can see that 2 SRS's are supported.</div>
<div><br>
</div>
<div>
<pre style="overflow: auto; padding: 10px; color: rgb(34, 34, 34); line-height: 1.2em; border: 1px solid rgb(198, 201, 203); font-size: 1.2em; margin-top: 1.5em; margin-bottom: 1.5em; -webkit-box-shadow: rgb(216, 216, 216) 1px 1px 1px; background-color: rgb(255, 255, 255);"> <span class="k" style="color: rgb(0, 112, 32); font-weight: bold;">METADATA</span>
    <span class="s" style="color: rgb(64, 112, 160);">"wms_title"</span>           <span class="s" style="color: rgb(64, 112, 160);">"WMS Demo Server"</span>
    <span class="s" style="color: rgb(64, 112, 160);">"wms_onlineresource"</span>  <span class="s" style="color: rgb(64, 112, 160);">"http://my.host.com/cgi-bin/mapserv?map=wms.map&"</span>
    <span class="s" style="color: rgb(64, 112, 160);">"wms_srs"</span>             <span class="s" style="color: rgb(64, 112, 160);">"EPSG:4269 EPSG:4326"</span>
  <span class="k" style="color: rgb(0, 112, 32); font-weight: bold;">END</span></pre>
</div>
<div>Just keep adding to the list to support more projections. </div>
<div><br>
</div>
<div>Mike</div>
<div><br>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>Schylberg Lars <<a href="mailto:lars.schylberg@saabgroup.com">lars.schylberg@saabgroup.com</a>><br>
<span style="font-weight:bold">Date: </span>Friday, February 6, 2015 at 10:05 AM<br>
<span style="font-weight:bold">To: </span>"<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>" <<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>><br>
<span style="font-weight:bold">Subject: </span>[EXTERNAL] [mapserver-users] WMS SRS as variable<br>
<span style="font-weight:bold">Resent-From: </span>Michael Smith <<a href="mailto:michael.smith@usace.army.mil">michael.smith@usace.army.mil</a>><br>
</div>
<div><br>
</div>
<div xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hello,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I wonder if there is a way to set SRS as a variable in a map file.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I have one map file that uses several other WMS clients that also are mapfiles.<o:p></o:p></p>
<p class="MsoNormal">I would like to use the SRS as variable to make the WMS service more flexible.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I have tried to do VALIDATION on SRS variable, but that only gives errors.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks /Lars S.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</div>
</span>
</body>
</html>