<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>Paul,</div>
<div><br>
</div>
<div>What is your WMS Request? And what does your GetCapabilities look like? MapServer might have renamed (added _1) to your TestMap layer name because your map is named TestMap. Layer names are also case sensitive.</div>
<div><br>
</div>
<div>Mike</div>
<div><br>
</div>
<div>
<div>
<div>
<div>-- </div>
<div>Michael Smith</div>
</div>
<div>US Army Corps</div>
<div>Remote Sensing GIS/Center</div>
</div>
</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>"<a href="mailto:Paul.Sheedy@bentley.com">Paul.Sheedy@bentley.com</a>" <<a href="mailto:Paul.Sheedy@bentley.com">Paul.Sheedy@bentley.com</a>><br>
<span style="font-weight:bold">Date: </span>Tuesday, October 1, 2013 12:57 PM<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] Canot get around: WMS server error. Invalid layer(s) given in the LAYERS parameter.r<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;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
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
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
code
{mso-style-priority:99;
font-family:Consolas;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
margin-bottom:.0001pt;
font-size:9.0pt;
font-family:Consolas;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
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" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;background:#FBFBFB">
<span style="font-size: 9pt; font-family: Arial, sans-serif; color: rgb(51, 51, 51); ">I installed MS4W a few days ago to put together a small proof-of-concept. I've been through the tutorial, which I got to work with a little tweaking. When I attempt to use
an Oracle spatial table, I get a MS server error: Invalid layers(s)... error - which gives me no indication where I am going wrong.<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;background:#FBFBFB">
<span style="font-size: 9pt; font-family: Arial, sans-serif; color: rgb(51, 51, 51); ">Can anyone spot a problem here? I am running out of hair to pull out.<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;background:#FBFBFB">
<span style="font-size: 9pt; font-family: Arial, sans-serif; color: rgb(51, 51, 51); ">I have the Oracle client installed on my local machine and am attempting to draw a map from a spatial table on a local vm, on which I have Oracle Spatial running (10g).<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;background:#FBFBFB">
<span style="font-size: 9pt; font-family: Arial, sans-serif; color: rgb(51, 51, 51); ">I tried OGRINFO using the Oracle login credentials and table name - with immediate success.<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;background:#FBFBFB">
<span style="font-size: 9pt; font-family: Arial, sans-serif; color: rgb(51, 51, 51); ">mapserv -v shows that ORACLESPATIAL is a valid option<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;background:#FBFBFB">
<span style="font-size: 9pt; font-family: Arial, sans-serif; color: rgb(51, 51, 51); ">GetCapabiltiies contains no warnings<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;background:#FBFBFB">
<span style="font-size: 9pt; font-family: Arial, sans-serif; color: rgb(51, 51, 51); ">The map file is very simple - I have tried at least one hundred variations.
<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;background:#FBFBFB">
<span style="font-size: 9pt; font-family: Arial, sans-serif; color: rgb(51, 51, 51); ">The data table has a SRID (though I have other tables with SRIDs and tables without). I've included the SRID in wms_srs and I have excluded it. I am beginning to believe
the problem lies elsewhere - but have no idea what approach to use to find it, other than stabbing in the dark.<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;background:#FBFBFB">
<span style="font-size: 9pt; font-family: Arial, sans-serif; color: rgb(51, 51, 51); ">The map file contents are:<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;background:#FBFBFB">
<span style="font-size: 9pt; font-family: Arial, sans-serif; color: rgb(51, 51, 51); ">MAP<br>
NAME "Map1"<br>
SIZE 600 400<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#FBFBFB"><span style="font-size:9.0pt;font-family:Consolas;color:#333333">WEB<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#FBFBFB"><span style="font-size:9.0pt;font-family:Consolas;color:#333333"> IMAGEPATH "/tmp/ms_tmp/"<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#FBFBFB"><span style="font-size:9.0pt;font-family:Consolas;color:#333333"> TEMPLATE "..\Templates\TEMPLATE2.HTML"
<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#FBFBFB"><span style="font-size:9.0pt;font-family:Consolas;color:#333333"> METADATA<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#FBFBFB"><span style="font-size:9.0pt;font-family:Consolas;color:#333333"> "wms_enable_request" "*"<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#FBFBFB"><span style="font-size:9.0pt;font-family:Consolas;color:#333333"> "wms_title" "TestMap"<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#FBFBFB"><span style="font-size:9.0pt;font-family:Consolas;color:#333333"> "wms_srs" "EPSG:2205"<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#FBFBFB"><span style="font-size:9.0pt;font-family:Consolas;color:#333333"> END<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#FBFBFB"><span style="font-size:9.0pt;font-family:Consolas;color:#333333">END<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#FBFBFB"><span style="font-size:9.0pt;font-family:Consolas;color:#333333"><o:p> </o:p></span></p>
<p class="MsoNormal" style="background:#FBFBFB"><span style="font-size:9.0pt;font-family:Consolas;color:#333333">LAYER<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#FBFBFB"><span style="font-size:9.0pt;font-family:Consolas;color:#333333"> NAME TestMap<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#FBFBFB"><span style="font-size:9.0pt;font-family:Consolas;color:#333333"> TYPE LINE<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#FBFBFB"><span style="font-size:9.0pt;font-family:Consolas;color:#333333"> STATUS ON<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#FBFBFB"><span style="font-size:9.0pt;font-family:Consolas;color:#333333"> UNITS METERS<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#FBFBFB"><span style="font-size:9.0pt;font-family:Consolas;color:#333333"> CONNECTIONTYPE ORACLESPATIAL<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#FBFBFB"><span style="font-size:9.0pt;font-family:Consolas;color:#333333"> CONNECTION "test_user/test_user@LOCALVM1"<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#FBFBFB"><span style="font-size:9.0pt;font-family:Consolas;color:#333333"> DATA "SHAPE FROM (SELECT SHAPE FROM XNA_ROUTES)"<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#FBFBFB"><span style="font-size:9.0pt;font-family:Consolas;color:#333333"> METADATA<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#FBFBFB"><span style="font-size:9.0pt;font-family:Consolas;color:#333333"> "wms_enable_request" "*"<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#FBFBFB"><span style="font-size:9.0pt;font-family:Consolas;color:#333333"> "wms_name" "TestMap"<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#FBFBFB"><span style="font-size:9.0pt;font-family:Consolas;color:#333333"> "wms_title" "TestMapTitle"<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#FBFBFB"><span style="font-size:9.0pt;font-family:Consolas;color:#333333"> "wms_srs" "EPSG:4326"<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#FBFBFB"><span style="font-size:9.0pt;font-family:Consolas;color:#333333"> "wms_format" "image/gif"<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#FBFBFB"><span style="font-size:9.0pt;font-family:Consolas;color:#333333"> END<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#FBFBFB"><span style="font-size:9.0pt;font-family:Consolas;color:#333333">END #LAYER<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;background:#FBFBFB">
<span style="font-size: 9pt; font-family: Arial, sans-serif; color: rgb(51, 51, 51); ">END #MAP<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</div>
</span>
</body>
</html>