<div dir="ltr"><div>I do not use mapserver and mapfile. I use "qgis-mapserver" which is the cartographic server of the qgis project. It will be easier to use mapserver but I need to have a really great precision form my representation. And qgis-server is exactly what I need.<br>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/11/22  <span dir="ltr"><<a href="mailto:Steve.Toutant@inspq.qc.ca" target="_blank">Steve.Toutant@inspq.qc.ca</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br><font face="sans-serif">You can use shp2img to test your mapfile
before using it in OL</font>
<br><font face="sans-serif"><a href="http://mapserver.org/fr/utilities/shp2img.html" target="_blank">http://mapserver.org/fr/utilities/shp2img.html</a></font>
<br>
<br><font face="sans-serif">set debug 5 under MAP and LAYER tag
in your mafile and have a look at mapserver log.</font>
<br><font face="sans-serif"><br>
If it works with shp2img the problem is your OL config</font>
<br>
<br>
<br>
<br>
<p></p><table width="100%">
<tbody><tr valign="top">
<td width="40%"><font face="sans-serif" size="1"><b>Gaëtan Palka <<a href="mailto:palka.gaetan@gmail.com" target="_blank">palka.gaetan@gmail.com</a>>@<a href="http://lists.osgeo.org" target="_blank">lists.osgeo.org</a></b>
</font>
<br><font face="sans-serif" size="1">Envoyé par : <a href="mailto:openlayers-users-bounces@lists.osgeo.org" target="_blank">openlayers-users-bounces@lists.osgeo.org</a></font>
<p><font face="sans-serif" size="1">2013-11-22 13:12</font>
</p></td><td width="59%">
<table width="100%">
<tbody><tr valign="top">
<td>
<div align="right"><font face="sans-serif" size="1">A</font></div>
</td><td><font face="sans-serif" size="1">openlayers-users <<a href="mailto:openlayers-users@lists.osgeo.org" target="_blank">openlayers-users@lists.osgeo.org</a>></font>
</td></tr><tr valign="top">
<td>
<div align="right"><font face="sans-serif" size="1">cc</font></div>
</td><td>
</td></tr><tr valign="top">
<td>
<div align="right"><font face="sans-serif" size="1">Objet</font></div>
</td><td><font face="sans-serif" size="1">[OpenLayers-Users] OL 2.13 and WMS from
qgis-mapserver</font></td></tr></tbody></table>
<br>
<table>
<tbody><tr valign="top">
<td>
</td><td></td></tr></tbody></table>
<br></td></tr></tbody></table>
<br>
<br>
<br>
<br>
<br><font size="3">hi,<br>
</font>
<br><font size="3">I work on Ubuntu 12.04 LTS and I want to show a WMS produced
by qgis-mapserver. All is OK want I open my WMS with qgis desktop but when
I want to show it with OL my WMS does not appear and firebug does not says
that there is an error.</font>
<br><font size="3">Here my .js :<br>
<br>
function init() {<br>
    var map = new OpenLayers.Map('map',{controls:[]});<br>
<br>
    map.addControl(new OpenLayers.Control.LayerSwitcher());<br>
    map.addControl(new OpenLayers.Control.Navigation());<br>
<br>
    var osmLayer = new OpenLayers.Layer.OSM();<br>
    var wms = new OpenLayers.Layer.WMS(<br>
        'alea', '</font><a href="http://localhost/cgi-bin/alea37_900913/qgis_mapserv.fcgi" target="_blank"><font color="blue" size="3"><u>http://localhost/cgi-bin/alea37_900913/qgis_mapserv.fcgi</u></font></a><font size="3">',<br>

        {<br>
        layers: 'alea37_900913',<br>
        format: 'image/png',<br>
        }<br>
    );<br>
    map.addLayer(osmLayer);<br>
    map.addLayer(wms);<br>
    map.setCenter(new OpenLayers.LonLat(71000,6000000),10);<br>
<br>
}<br>
</font>
<br><font size="3">My data (shp and qgis project) is in the folder /usr/lib/cgi-bin/alea37_900913.<br>
</font>
<br><font size="3">I used this tutorial :</font><font color="blue" size="3"><u><br>
</u></font><a href="http://anitagraser.com/2012/03/30/qgis-server-on-ubuntu-step-by-step/" target="_blank"><font color="blue" size="3"><u>http://anitagraser.com/2012/03/30/qgis-server-on-ubuntu-step-by-step/</u></font></a><font size="3"><br>

</font>
<br><font size="3">Thank you by advance for help.</font><tt><font>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org" target="_blank">Users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a></font></tt>
<br>
<br>
<br></blockquote></div><br></div>