[OpenLayers-Users] RE OL 2.13 and WMS from qgis-mapserver

Gaëtan Palka palka.gaetan at gmail.com
Fri Nov 22 11:22:50 PST 2013


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.


2013/11/22 <Steve.Toutant at inspq.qc.ca>

>
> You can use shp2img to test your mapfile before using it in OL
> http://mapserver.org/fr/utilities/shp2img.html
>
> set debug 5 under MAP and LAYER tag in your mafile and have a look at
> mapserver log.
>
> If it works with shp2img the problem is your OL config
>
>
>
>  *Gaëtan Palka <palka.gaetan at gmail.com
> <palka.gaetan at gmail.com>>@lists.osgeo.org <http://lists.osgeo.org>*
> Envoyé par : openlayers-users-bounces at lists.osgeo.org
>
> 2013-11-22 13:12
>   A
> openlayers-users <openlayers-users at lists.osgeo.org>
> cc
>   Objet
> [OpenLayers-Users] OL 2.13 and WMS from qgis-mapserver
>
>
>
>
>
>
> hi,
>
> 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.
> Here my .js :
>
> function init() {
>     var map = new OpenLayers.Map('map',{controls:[]});
>
>     map.addControl(new OpenLayers.Control.LayerSwitcher());
>     map.addControl(new OpenLayers.Control.Navigation());
>
>     var osmLayer = new OpenLayers.Layer.OSM();
>     var wms = new OpenLayers.Layer.WMS(
>         'alea', '
> *http://localhost/cgi-bin/alea37_900913/qgis_mapserv.fcgi*<http://localhost/cgi-bin/alea37_900913/qgis_mapserv.fcgi>
> ',
>         {
>         layers: 'alea37_900913',
>         format: 'image/png',
>         }
>     );
>     map.addLayer(osmLayer);
>     map.addLayer(wms);
>     map.setCenter(new OpenLayers.LonLat(71000,6000000),10);
>
> }
>
> My data (shp and qgis project) is in the folder
> /usr/lib/cgi-bin/alea37_900913.
>
> I used this tutorial :
> *http://anitagraser.com/2012/03/30/qgis-server-on-ubuntu-step-by-step/*<http://anitagraser.com/2012/03/30/qgis-server-on-ubuntu-step-by-step/>
>
> Thank you by advance for help.
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20131122/42c686ca/attachment.html>


More information about the Users mailing list