<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: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]-->
</head>
<body 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:9.0pt;font-family:"Arial","sans-serif";color:#333333">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:9.0pt;font-family:"Arial","sans-serif";color:#333333">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:9.0pt;font-family:"Arial","sans-serif";color:#333333">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:9.0pt;font-family:"Arial","sans-serif";color:#333333">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:9.0pt;font-family:"Arial","sans-serif";color:#333333">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:9.0pt;font-family:"Arial","sans-serif";color:#333333">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:9.0pt;font-family:"Arial","sans-serif";color:#333333">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:9.0pt;font-family:"Arial","sans-serif";color:#333333">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:9.0pt;font-family:"Arial","sans-serif";color:#333333">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:9.0pt;font-family:"Arial","sans-serif";color:#333333">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:9.0pt;font-family:"Arial","sans-serif";color:#333333">END #MAP<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>