<html 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"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><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;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 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;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
{mso-style-priority:99;
mso-style-link:"Plain Text Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:36.0pt;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:"Courier New";}
span.PlainTextChar
{mso-style-name:"Plain Text Char";
mso-style-priority:99;
mso-style-link:"Plain Text";
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";}
span.EmailStyle24
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.EmailStyle25
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.EmailStyle26
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.EmailStyle27
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.EmailStyle28
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.EmailStyle29
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.EmailStyle30
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:65346422;
mso-list-type:hybrid;
mso-list-template-ids:-606330706 67698705 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
{mso-level-text:"%1\)";
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level2
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level3
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l0:level4
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level5
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level6
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l0:level7
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level8
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level9
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
--></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]--></head><body lang=EN-GB link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='color:#1F497D'>So adding it to the EPSG file does not work? If that’s the case then the sting may be incorrect.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Regards,<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Donald<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Brian Fischer [mailto:bfischer@houstoneng.com] <br><b>Sent:</b> 01 November 2013 21:47<br><b>To:</b> Donald Kerr; mapserver-users@lists.osgeo.org<br><b>Subject:</b> RE: [mapserver-users] WMS Server and Custom ESPG code<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>I can get the re-projection to work just fine, but not with a ESPG code that is not already defined in the Proj espg file. For example I can go from my custom coordinate system to 3857, but I cannot serve it out using my custom code.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>I think what is different about your example and mine is that in your’s case you have the EPSG code that already exists and in my case I am trying to use a new espg number that does not previously exists.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Thanks,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><div><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;color:black'>Brian Fischer<o:p></o:p></span></b></p><p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;color:#1F497D'>Principal | GIS Project Manager <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;color:black'>Houston Engineering, Inc.<o:p></o:p></span></p><p class=MsoNormal><b><span lang=EN-US style='font-size:9.0pt;color:black'>O</span></b><span lang=EN-US style='font-size:9.0pt;color:black'> 763.493.4522 | <b>D</b> 763.493.6664 | <b>F</b> 763.493.5572</span><span lang=EN-US style='font-size:9.0pt;color:#1F497D'><o:p></o:p></span></p></div><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Donald Kerr [<a href="mailto:donald.kerr@dkerr.co.uk">mailto:donald.kerr@dkerr.co.uk</a>] <br><b>Sent:</b> Friday, November 01, 2013 4:45 PM<br><b>To:</b> Brian Fischer; <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br><b>Subject:</b> RE: [mapserver-users] WMS Server and Custom ESPG code<o:p></o:p></span></p></div></div><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoPlainText>MAP<o:p></o:p></p><p class=MsoPlainText style='text-indent:36.0pt'>WEB<o:p></o:p></p><p class=MsoPlainText style='margin-left:36.0pt;text-indent:36.0pt'>METADATA<o:p></o:p></p><p class=MsoPlainText style='margin-left:72.0pt;text-indent:36.0pt'>"wms_srs" "EPSG:27700 EPSG:900913" #Additional projections do not need to be set in LAYER if set here<o:p></o:p></p><p class=MsoPlainText style='margin-left:72.0pt;text-indent:36.0pt'><o:p> </o:p></p><p class=MsoPlainText>List your map projection and the reprojection as above and try that.<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>Regards,<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>Donald<o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> <a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a> [<a href="mailto:mapserver-users-bounces@lists.osgeo.org">mailto:mapserver-users-bounces@lists.osgeo.org</a>] <b>On Behalf Of </b>Brian Fischer<br><b>Sent:</b> 01 November 2013 21:20<br><b>To:</b> <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br><b>Subject:</b> Re: [mapserver-users] WMS Server and Custom ESPG code<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Thanks for the reply! It looks like I have everything setup right but seems like MapServer is not reading my espg file in the proj folder. Here’s the espg definition and here’s my mapfile. Or maybe it is something with the extent being requested with the SRS but everything looks right. I’m just trying to display the output image in a web browser to validate it is working.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'># Chippewa County Coordinates EPSG:97036<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><97306> +proj=lcc +lat_0=44.581111111111 +lon_0=-91.29444444444444 +lat_1=45.141666666666 +lat_2=44.813888888888 +x_0=197000 +y_0=0.0 +ellps=GRS80 +datum=NAD83 +k_0=1.0000391127 +a=6378412.542 +b=6357027.8561403 +f=298.270107115315 +to_meter=0.3048006096012192 +no_defs <><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>MAP<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> NAME 'Basemap'<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> SIZE 800 650<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> STATUS ON<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> EXTENT 68036 80345 326435 279563 #Extent is needed for feature report<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> UNITS FEET<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> CONFIG "PROJ_LIB" "E:/ms4w/proj/nad"<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> INCLUDE "geomoose_globals.map"<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> WEB<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> METADATA<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> 'wms_title' 'Basemap'<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> 'wms_srs' 'epsg:97306'<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> 'wms_enable_request' '*'<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> END<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> END<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> PROJECTION<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> 'init=epsg:97306'<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> END<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> LAYER # County Boundary<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> NAME 'County_Boundary'<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> DATA 'data/county'<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> STATUS ON<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> TYPE POLYGON <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> PROJECTION<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> 'init=epsg:97306'<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> END<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> METADATA<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> 'wms_srs' 'epsg:97306'<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> END<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> CLASS<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> NAME 'County Boundary'<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> STYLE<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> WIDTH 5<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> COLOR -1 -1 -1<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> OUTLINECOLOR 100 100 100<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> END <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> END<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> END # County Boundary<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>END<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Here’s the error I get:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><!DOCTYPE ServiceExceptionReport SYSTEM "<a href="http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd">http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd</a>"><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><ServiceExceptionReport version="1.1.1"><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><ServiceException code="InvalidSRS"><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>msWMSLoadGetMapParams(): WMS server error. Invalid SRS given : SRS must be valid for all requested layers.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'></ServiceException><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'></ServiceExceptionReport><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><div><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;color:black'>Brian Fischer<o:p></o:p></span></b></p><p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;color:#1F497D'>Principal | GIS Project Manager <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;color:black'>Houston Engineering, Inc.<o:p></o:p></span></p><p class=MsoNormal><b><span lang=EN-US style='font-size:9.0pt;color:black'>O</span></b><span lang=EN-US style='font-size:9.0pt;color:black'> 763.493.4522 | <b>D</b> 763.493.6664 | <b>F</b> 763.493.5572</span><span lang=EN-US style='font-size:9.0pt;color:#1F497D'><o:p></o:p></span></p></div><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> <a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a> [<a href="mailto:mapserver-users-bounces@lists.osgeo.org">mailto:mapserver-users-bounces@lists.osgeo.org</a>] <b>On Behalf Of </b>Smith, Michael<br><b>Sent:</b> Friday, November 01, 2013 2:26 PM<br><b>To:</b> <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br><b>Subject:</b> Re: [mapserver-users] WMS Server and Custom ESPG code<o:p></o:p></span></p></div></div><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Hi Brian, I have successfully done this as you outline below.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>I checked my WMS and they reference c:\ms4w\proj\nad.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>In that folder I edited the epsg file<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>I added the following line to the end of the file:<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'># ESRI Web Mercator<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'><102113> +proj=merc +lon_0=0 +k=1 +x_0=0 +y_0=0 +a=6378137 +b=6378137 +units=m +no_defs<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Now I can serve my WMS out as Web Mercator for ArcGIS Online.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal style='margin-bottom:12.0pt'><span lang=EN-US style='font-size:10.0pt;color:#1F497D'>===============================<br><b>Michael Smith MS GISP</b><br>State GIS Manager, Maine Office of GIS<br>State of Maine, Office of Information Technology<br><i>michael.smith _at_ maine.gov</i> 207-215-5530</span><span lang=EN-US style='color:#1F497D'><o:p></o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> <a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a> [<a href="mailto:mapserver-users-bounces@lists.osgeo.org">mailto:mapserver-users-bounces@lists.osgeo.org</a>] <b>On Behalf Of </b>Brian Fischer<br><b>Sent:</b> Friday, November 01, 2013 2:41 PM<br><b>To:</b> <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br><b>Subject:</b> [mapserver-users] WMS Server and Custom ESPG code<o:p></o:p></span></p></div></div><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><pre style='text-align:justify;line-height:18.0pt'><span lang=EN-US>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.<o:p></o:p></span></span></pre><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Is this supported? I have followed these steps.<o:p></o:p></span></p><p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo2'><![if !supportLists]><span lang=EN-US style='color:#1F497D'><span style='mso-list:Ignore'>1)<span style='font:7.0pt "Times New Roman"'> </span></span></span><![endif]><span lang=EN-US>Defined the custom projection with a new espg code <span style='color:#1F497D'>in \ms4w\proj\nad\epsg<o:p></o:p></span></span></p><p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo2'><![if !supportLists]><span lang=EN-US style='color:#1F497D'><span style='mso-list:Ignore'>2)<span style='font:7.0pt "Times New Roman"'> </span></span></span><![endif]><span lang=EN-US style='color:#1F497D'>In the mapfile, I added the reference to the Proj (CONFIG "PROJ_LIB" "E:/ms4w/proj/nad")<o:p></o:p></span></p><p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo2'><![if !supportLists]><span lang=EN-US style='color:#1F497D'><span style='mso-list:Ignore'>3)<span style='font:7.0pt "Times New Roman"'> </span></span></span><![endif]><span lang=EN-US style='color:#1F497D'>Defined the new espg in the Web, Projection, Layer objects of the mapfile.<o:p></o:p></span></p><p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo2'><![if !supportLists]><span lang=EN-US style='color:#1F497D'><span style='mso-list:Ignore'>4)<span style='font:7.0pt "Times New Roman"'> </span></span></span><![endif]><span lang=EN-US style='color:#1F497D'>Verified the mapfile works using the shp2img utility<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Has anyone else go this to work? <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Thanks!<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Brian<o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>No virus found in this message.<br>Checked by AVG - <a href="http://www.avg.com">www.avg.com</a><br>Version: 2014.0.4158 / Virus Database: 3615/6797 - Release Date: 10/31/13<o:p></o:p></span></p></div></body></html>