<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt">The client will also need to know the projection parameters for the map to be displayed.<br><br>A local call to shpimage should be able to generate the image to test that mapserver can draw the image in that projection, as an image, but to have it used with other data (layers) both client & server need to "know" the projection used.<br><div><span><br></span></div><div>Brent Wood<br></div>  <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <hr size="1">  <font size="2" face="Arial"> <b><span style="font-weight:bold;">From:</span></b> Brian Fischer <bfischer@houstoneng.com><br> <b><span style="font-weight: bold;">To:</span></b> "mapserver-users@lists.osgeo.org"
 <mapserver-users@lists.osgeo.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Saturday, November 2, 2013 7:41 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> [mapserver-users] WMS Server and Custom ESPG code<br> </font> </div> <div class="y_msg_container"><br><div id="yiv5369326046">

 
 
<style><!--
#yiv5369326046  
 _filtered #yiv5369326046 {font-family:"Cambria Math";panose-1:2 4 5 3 5 4 6 3 2 4;}
 _filtered #yiv5369326046 {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}
 _filtered #yiv5369326046 {font-family:Tahoma;panose-1:2 11 6 4 3 5 4 4 2 4;}
#yiv5369326046  
#yiv5369326046 p.yiv5369326046MsoNormal, #yiv5369326046 li.yiv5369326046MsoNormal, #yiv5369326046 div.yiv5369326046MsoNormal
        {margin:0in;margin-bottom:.0001pt;font-size:11.0pt;font-family:"Calibri", "sans-serif";}
#yiv5369326046 a:link, #yiv5369326046 span.yiv5369326046MsoHyperlink
        {color:blue;text-decoration:underline;}
#yiv5369326046 a:visited, #yiv5369326046 span.yiv5369326046MsoHyperlinkFollowed
        {color:purple;text-decoration:underline;}
#yiv5369326046 pre
        {margin:0in;margin-bottom:.0001pt;font-size:10.0pt;font-family:"Courier New";}
#yiv5369326046 p.yiv5369326046MsoAcetate, #yiv5369326046 li.yiv5369326046MsoAcetate, #yiv5369326046 div.yiv5369326046MsoAcetate
        {margin:0in;margin-bottom:.0001pt;font-size:8.0pt;font-family:"Tahoma", "sans-serif";}
#yiv5369326046 p.yiv5369326046MsoListParagraph, #yiv5369326046 li.yiv5369326046MsoListParagraph, #yiv5369326046 div.yiv5369326046MsoListParagraph
        {margin-top:0in;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt;font-size:11.0pt;font-family:"Calibri", "sans-serif";}
#yiv5369326046 span.yiv5369326046EmailStyle17
        {font-family:"Calibri", "sans-serif";color:windowtext;}
#yiv5369326046 span.yiv5369326046BalloonTextChar
        {font-family:"Tahoma", "sans-serif";}
#yiv5369326046 span.yiv5369326046HTMLPreformattedChar
        {font-family:"Courier New";}
#yiv5369326046 .yiv5369326046MsoChpDefault
        {font-family:"Calibri", "sans-serif";}
 _filtered #yiv5369326046 {margin:1.0in 1.0in 1.0in 1.0in;}
#yiv5369326046 div.yiv5369326046WordSection1
        {}
#yiv5369326046  
 _filtered #yiv5369326046 {}
 _filtered #yiv5369326046 {}
 _filtered #yiv5369326046 {}
 _filtered #yiv5369326046 {}
 _filtered #yiv5369326046 {}
 _filtered #yiv5369326046 {}
 _filtered #yiv5369326046 {}
 _filtered #yiv5369326046 {}
 _filtered #yiv5369326046 {}
 _filtered #yiv5369326046 {}
 _filtered #yiv5369326046 {}
 _filtered #yiv5369326046 {}
 _filtered #yiv5369326046 {}
 _filtered #yiv5369326046 {}
 _filtered #yiv5369326046 {}
 _filtered #yiv5369326046 {}
 _filtered #yiv5369326046 {}
 _filtered #yiv5369326046 {}
 _filtered #yiv5369326046 {}
 _filtered #yiv5369326046 {}
#yiv5369326046 ol
        {margin-bottom:0in;}
#yiv5369326046 ul
        {margin-bottom:0in;}
--></style>

<div>
<div class="yiv5369326046WordSection1">
<pre style="text-align:justify;line-height:18.0pt;">I am trying to use MapServer 6.2.1 as a WMS server with a custom projection and espg code, but I keep getting this error message.  <span style="color:#222222;">msWMSLoadGetMapParams(): WMS server error. Invalid SRS given : SRS must be valid for all requested layers.</span></pre> 
<div class="yiv5369326046MsoNormal">  </div> 
<div class="yiv5369326046MsoNormal">Is this supported?  I have followed these steps.</div> 
<div class="yiv5369326046MsoListParagraph" style=""><span style="color:#1F497D;"><span style="">1)<span style="font:7.0pt;">     
</span></span></span>Defined the custom projection with a new espg code
<span style="color:#1F497D;">in \ms4w\proj\nad\epsg</span></div> 
<div class="yiv5369326046MsoListParagraph" style=""><span style="color:#1F497D;"><span style="">2)<span style="font:7.0pt;">     
</span></span></span><span style="color:#1F497D;">In the mapfile, I added the reference to the Proj (CONFIG "PROJ_LIB" "E:/ms4w/proj/nad")</span></div> 
<div class="yiv5369326046MsoListParagraph" style=""><span style="color:#1F497D;"><span style="">3)<span style="font:7.0pt;">     
</span></span></span><span style="color:#1F497D;">Defined the new espg in the Web, Projection, Layer objects of the mapfile.</span></div> 
<div class="yiv5369326046MsoListParagraph" style=""><span style="color:#1F497D;"><span style="">4)<span style="font:7.0pt;">     
</span></span></span><span style="color:#1F497D;">Verified the mapfile works using the shp2img utility</span></div> 
<div class="yiv5369326046MsoNormal"><span style="color:#1F497D;">  </span></div> 
<div class="yiv5369326046MsoNormal"><span style="color:#1F497D;">Has anyone else go this to work? 
</span></div> 
<div class="yiv5369326046MsoNormal"><span style="color:#1F497D;">Thanks!</span></div> 
<div class="yiv5369326046MsoNormal"><span style="color:#1F497D;">Brian</span></div> 
<div class="yiv5369326046MsoNormal">  </div> 
</div>
</div>
</div><br>_______________________________________________<br>mapserver-users mailing list<br><a ymailto="mailto:mapserver-users@lists.osgeo.org" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br><a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br><br></div> </div> </div>  </div></body></html>