<div dir="ltr"><div><div><div>I continue my test to be able to shaw my WMS from qgis-server. I follow :<br><a href="http://live.osgeo.org/en/quickstart/openlayers_quickstart.html">http://live.osgeo.org/en/quickstart/openlayers_quickstart.html</a><br>
</div>but my tiles stay white. The resultat of :<br><a href="http://localhost/cgi-bin/alea37_900913/qgis_mapserv.fcgi?MAP=%2Fusr%2Flib%2Fcgi-bin%2Falea37_900913%2Falea37_900913.qgs&LAYERS=alea37_900913&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&FORMAT=image%2Fjpeg&SRS=EPSG%3A4326&BBOX=0,-90,180,90&WIDTH=256&HEIGHT=256">http://localhost/cgi-bin/alea37_900913/qgis_mapserv.fcgi?MAP=%2Fusr%2Flib%2Fcgi-bin%2Falea37_900913%2Falea37_900913.qgs&LAYERS=alea37_900913&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&FORMAT=image%2Fjpeg&SRS=EPSG%3A4326&BBOX=0,-90,180,90&WIDTH=256&HEIGHT=256</a><br>
</div>The webbrowser give any error, only a white tile.<br><br></div>Thank you for help<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/11/22 Gaëtan Palka <span dir="ltr"><<a href="mailto:palka.gaetan@gmail.com" target="_blank">palka.gaetan@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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 size="1" face="sans-serif"><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 size="1" face="sans-serif">Envoyé par : <a href="mailto:openlayers-users-bounces@lists.osgeo.org" target="_blank">openlayers-users-bounces@lists.osgeo.org</a></font>
<p><font size="1" face="sans-serif">2013-11-22 13:12</font>
</p></td><td width="59%">
<table width="100%">
<tbody><tr valign="top">
<td>
<div align="right"><font size="1" face="sans-serif">A</font></div>
</td><td><font size="1" face="sans-serif">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 size="1" face="sans-serif">cc</font></div>
</td><td>
</td></tr><tr valign="top">
<td>
<div align="right"><font size="1" face="sans-serif">Objet</font></div>
</td><td><font size="1" face="sans-serif">[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 size="3" color="blue"><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 size="3" color="blue"><u><br>
</u></font><a href="http://anitagraser.com/2012/03/30/qgis-server-on-ubuntu-step-by-step/" target="_blank"><font size="3" color="blue"><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>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org">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><br></blockquote></div><br></div>