<div dir="ltr">hi<div><br></div><div>i have removed the space and <span style="font-size:12.8px">"c://" from the url, still map is not displaying in the qgis</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">please check my mapfile whether i am doing any mistake</span></div><div><span style="font-size:12.8px"><br></span></div><div><div style=""><span style="font-size:12.8px">MAP</span></div><div style=""><span style="font-size:12.8px">  IMAGETYPE      svg</span></div><div style=""><span style="font-size:12.8px">UNITS            METERS   </span></div><div style=""><span style="font-size:12.8px">  EXTENT         8240841.450745 2400319.900386 9218007.463612 3107183.406947</span></div><div style=""><span style="font-size:12.8px">  SIZE           1400 1300</span></div><div style=""><span style="font-size:12.8px">  SHAPEPATH      "/ms4w/apps/webgis/data"</span></div><div style=""><span style="font-size:12.8px">  IMAGECOLOR     255 255 255</span></div><div style=""><span style="font-size:12.8px">TRANSPARENT on</span></div><div style=""><span style="font-size:12.8px">DEBUG ON</span></div><div style=""><span style="font-size:12.8px">CONFIG "MS_ERRORFILE" "/ms4w/tmp/ms_error.txt"</span></div><div style=""><span style="font-size:12.8px"><br></span></div><div style=""><span style="font-size:12.8px">web</span></div><div style=""><span style="font-size:12.8px"><span class="" style="white-space:pre">          </span>metadata</span></div><div style=""><span style="font-size:12.8px">  "wms_title"             "MapServer layer"</span></div><div style=""><span style="font-size:12.8px">            "wms_onlineresource"    "<a href="http://localhost:8085/cgi-bin/mapserv.exe">http://localhost:8085/cgi-bin/mapserv.exe</a>?</span></div><div style=""><span style="font-size:12.8px"><br></span></div><div style=""><span style="font-size:12.8px">map=/ms4w/apps/webgis/wmssample.map"</span></div><div style=""><span style="font-size:12.8px">            "wms_enable_request"    "*"</span></div><div style=""><span style="font-size:12.8px">   "wms_srs" "EPSG:4326 EPSG:3857"</span></div><div style=""><span style="font-size:12.8px">  "wms_feature_info_mime_type" "text/html"</span></div><div style=""><span class="" style="white-space:pre;font-size:12.8px">                 </span></div><div style=""><span style="font-size:12.8px"><span class="" style="white-space:pre">         </span>end</span></div><div style=""><span style="font-size:12.8px"><span class="" style="white-space:pre"> </span>end</span></div><div style=""><br></div><div style=""><span style="font-size:12.8px">  # Start of LAYER DEFINITIONS ---------------------------------------------</span></div><div style=""><span style="font-size:12.8px">  LAYER # States polygon layer begins here</span></div><div style=""><span style="font-size:12.8px">METADATA</span></div><div style=""><span style="font-size:12.8px">            "wms_title"           "districts"</span></div><div style=""><span style="font-size:12.8px">           "wms_srs" "EPSG:4326 EPSG:3857"</span></div><div style=""><span style="font-size:12.8px">        END</span></div><div style=""><span style="font-size:12.8px">    NAME        district_old</span></div><div style=""><span style="font-size:12.8px">    DATA        district_old</span></div><div style=""><span style="font-size:12.8px">    STATUS      Default</span></div><div style=""><span style="font-size:12.8px">    TYPE         POLYGON</span></div><div style=""><span style="font-size:12.8px">PROJECTION</span></div><div style=""><span style="font-size:12.8px">          "init=EPSG:4326"</span></div><div style=""><span style="font-size:12.8px">    END</span></div><div style=""><span style="font-size:12.8px">  </span></div><div style=""><span style="font-size:12.8px">    CLASS</span></div><div style=""><span style="font-size:12.8px">      </span></div><div style=""><span style="font-size:12.8px">               style</span><span class="" style="font-size:12.8px;white-space:pre">                 </span><span style="font-size:12.8px"> </span><span class="" style="font-size:12.8px;white-space:pre">    </span><span style="font-size:12.8px"> </span><br></div><div style=""><span class="" style="white-space:pre;font-size:12.8px">                       </span></div><div style=""><span style="font-size:12.8px"><span class="" style="white-space:pre">                 </span>#color 55 230 51</span></div><div style=""><span style="font-size:12.8px"><span class="" style="white-space:pre">                    </span>outlinecolor 90 90 90</span></div><div style=""><span style="font-size:12.8px"><span class="" style="white-space:pre">                       </span>width 2</span></div><div style=""><span style="font-size:12.8px"><span class="" style="white-space:pre">             </span>end </span></div><div style=""><span style="font-size:12.8px"><span class="" style="white-space:pre">               </span>LABEL</span></div><div style=""><span style="font-size:12.8px"><span class="" style="white-space:pre">                       </span>#color 255 255 255</span></div><div style=""><span style="font-size:12.8px"><span class="" style="white-space:pre">          </span> <span class="" style="white-space:pre"> </span>size 2</span></div><div style=""><span style="font-size:12.8px"><span class="" style="white-space:pre">                      </span>BACKGROUNDCOLOR 255 201 14</span></div><div style=""><span style="font-size:12.8px"><span class="" style="white-space:pre">          </span> <span class="" style="white-space:pre"> </span>position auto</span></div><div style=""><span style="font-size:12.8px"><span class="" style="white-space:pre">               </span>END  </span></div><div style=""><span style="font-size:12.8px">    END</span></div><div style=""><span style="font-size:12.8px">  END </span></div><div style=""><span style="font-size:12.8px"> </span></div><div style=""><span style="font-size:12.8px">END</span></div></div><div style=""><span style="font-size:12.8px"><br></span></div><div style=""><span style="font-size:12.8px">imagetype also i tried with png and svg</span></div><div style=""><span style="font-size:12.8px"><br></span></div><div style=""><span style="font-size:12.8px">url is <a href="http://localhost:8085/cgi-bin/mapserv.exe?map=/ms4w/apps/webgis/wmssample.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities">http://localhost:8085/cgi-bin/mapserv.exe?map=/ms4w/apps/webgis/wmssample.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities</a></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 25, 2015 at 4:13 AM, John Abraham <span dir="ltr"><<a href="mailto:jea@hbaspecto.com" target="_blank">jea@hbaspecto.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">You are not normally supposed to include the other parameters (&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities) when you are adding a WMS/WFS URL to QGIS.  You specify the service and version in the QGIS dialog box instead.  QGIS will append those parameters for you, and query the GetCapabilities for you, and provide you with a list of options.  After you select a layer to include, QGIS will query without the GetCapabilities to retrieve the actual map images, based on what it finds when it did the GetCapabilities query.<div><br></div><div>So, try <a href="http://localhost:8085/cgi-bin/mapserv.exe" target="_blank">http://localhost:8085/cgi-bin/mapserv.exe</a>?map=c://ms4w/apps/webgis/wmssample.map<div><br></div><div>(In fact when you are working with other GIS packages it is sometimes even a problem to include the ?map=  parameter explicitly in the URL.  There's some approach with Apache Rewrite rules or mapserver configuration files or something like that to tell mapserver the name of the mapfile without having it as a parameter in the URL.  I can't find the documentation on that right now, but I didn't look too hard.  It seems the normal use case is to have a public facing URL and then your different feature layers are all defined in the same mapfile that's hidden from the user.  Anyway, my use case has hundreds of dynamically generated mapfiles, and QGIS never seems to have a problem with having the ?map= in the URL.)</div><div><br></div><div>As the other person mentioned, try to avoid putting the drive letter "c://" in the URL. It's just confusing to everyone to have a drive letter in the middle of a url.</div><div><br></div><div>Also, in your email below I see a space before the word map.  Make sure that's not there in reality.  " map" might not be recognized as the same parameter name as "map" </div><div><br><div>
<span style="border-collapse:separate;line-height:normal;border-spacing:0px"><div><div>--</div><div>John Abraham</div><div><a href="mailto:jea@hbaspecto.com" target="_blank">jea@hbaspecto.com</a></div><div>403-232-1060</div></div></span>

</div>
<br><div><blockquote type="cite"><div><div class="h5"><div>On Nov 24, 2015, at 12:24 AM, rishi <<a href="mailto:rishe28@gmail.com" target="_blank">rishe28@gmail.com</a>> wrote:</div><br></div></div><div><div><div class="h5"><div dir="ltr">hi all<div><br></div><div>my wms url is</div><div> <a href="http://localhost:8085/cgi-bin/mapserv.exe" target="_blank">http://localhost:8085/cgi-bin/mapserv.exe</a>? map=c://ms4w/apps/webgis/wmssample.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities</div><div><br></div><div>when i hit the above url it is downloading the mapserv.exe then i am changing .exe to .txt then i can able to see xml file</div><div><br></div><div>but when i am trying to add the above url in qgis, map is not displaying also i am getting error as document is in invalid format.</div><div><br></div><div>if i hit the url  <a href="http://localhost:8085/cgi-bin/mapserv" target="_blank">http://localhost:8085/cgi-bin/mapserv</a>? map=c://ms4w/apps/webgis/wmssample.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities</div><div> </div><div>without .exe the it is showing error as <span style="font-family:'Times New Roman';font-size:inherit">The requested URL /cgi-bin/mapserv was not found on this server.</span></div><div><span style="font-family:'Times New Roman';font-size:inherit"><br></span></div><div><span style="font-family:'Times New Roman';font-size:inherit">please tell me how to resolve the issue</span></div><div> </div><div><br></div></div></div></div><span class="">
_______________________________________________<br>mapserver-users mailing list<br><a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">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></span></div></blockquote></div><br></div></div></div></blockquote></div><br></div>