<div dir="ltr"><div class="gmail_quote" style=""><div dir="ltr" class="gmail_attr"><span style="font-family:georgia,serif">Earlier, I asked why my MapServer PostGIS implementation was producing a WMS service without any layers in it. The original question in detail is at the bottom of this summary.</span><br></div><div dir="ltr"><div><font face="georgia, serif"><br></font></div><div><font face="georgia, serif">The responses here and in other forums were quite helpful. It narrowed down the problem to about ten areas, which I dutifully examined as a checklist. Richard Greenwood's earliest suggestions happened to be the most helpful. He </font><span style="font-family:georgia,serif">suggested to look at the Apache logs to see what requests QGIS or ArcGIS was sending to MapServer. I'm glad I did - they kept redirecting in the URL to a "wms.map" file at the root directory that didn't exist.</span></div><div><font face="georgia, serif"><br></font></div><div><font face="georgia, serif">I then looked at my mapfile and lo and behold, I was the one redirecting it! I had taken example code from the </font><a href="https://mapserver.org/ogc/wms_server.html#setup-a-mapfile-for-your-wms" target="_blank">Setup a Mapfile For Your WMS</a><span style="font-family:georgia,serif"> documentation and hadn't customized it to my implementation. The example code wasn't annotated so I didn't realize it included an example that required revision.</span></div><div><br></div><div><font face="georgia, serif">It was in the WMS Metadata of the mapfile, where:</font></div><div><span style="color:rgb(0,0,0);font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono",monospace,serif;font-size:12px;white-space:pre-wrap">"wms_onlineresource" "<a href="http://localhost/cgi-bin/mapserv.exe?map=wms.map&" target="_blank">http://localhost/cgi-bin/mapserv.exe?map=wms.map&</a>?"</span><br></div><div dir="ltr"><br></div><div><font face="georgia, serif">I changed it to point to the actual mapfile location:</font></div><div><span style="color:rgb(0,0,0);font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono",monospace,serif;font-size:12px;white-space:pre-wrap">"wms_onlineresource" "<a href="http://localhost/cgi-bin/mapserv.exe?map=%2Fms4w%2Fapps%2Fsegis-demo%2Fmap-segis-demo.map&" target="_blank">http://localhost/cgi-bin/mapserv.exe?map=%2Fms4w%2Fapps%2Fsegis-demo%2Fmap-segis-demo.map&</a>?"</span><br></div><div><span style="color:rgb(0,0,0);font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono",monospace,serif;font-size:12px;white-space:pre-wrap"><br></span></div><div><font face="georgia, serif">Ironic as it was a line in the mapfile that redirected the run of the program away from itself. </font><span style="font-family:georgia,serif">I'm so very grateful for the responses I received to help me solve my (self-inflicted, as many are...) problem.</span></div><div dir="ltr"><br clear="all"><div><div dir="ltr" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="color:rgb(136,136,136)"><div>Nathan Tyler Lowry</div><div>Comprehensive GIS Solutions</div><div><a value="+17199633571" style="color:rgb(17,85,204)">(719) 208-7092</a> Desk<br></div><div><a value="+17199633571" style="color:rgb(17,85,204)">(719) 963-3571</a> Cell</div><div>(719) 960-2084 Fax</div><div><a href="mailto:Nathan.Tyler.Lowry@gmail.com" target="_blank">Nathan.Tyler.Lowry@gmail.com</a></div></div></div></div></div></div></div></div></div></div></div><input name="virtru-metadata" type="hidden" value="{"email-policy":{"state":"closed","expirationUnit":"days","disableCopyPaste":false,"disablePrint":false,"disableForwarding":false,"enableNoauth":false,"persistentProtection":false,"expandedWatermarking":false,"expires":false,"isManaged":false},"attachments":{},"compose-id":"79","compose-window":{"secure":false}}"></div>
</div></div>