Hi Bernhard and Andreas, I thought that parameters WIDHT, HEIGHT BBOX and CRS were optional... In my browser, my layer appears like an image (http://localhost/cgi-bin/qgis_mapserv.fcgi?map=/usr/lib/cgi-bin/arrondissement.qgs&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&LAYERS=adm_arrondissement_bdt&FORMAT=image/png&CRS=EPSG:2154&BBOX=752196,6747898,1125485,6953938&WIDTH=800&HEIGHT=800). In QGIS-desktop, my project appears with my layer and I can load image. So, QGIS-Server run without error?
The CRS is defined in the QGIS project setting and also in QWC in the GlobalOptions.js. I added a file "EPSG2154.js" in ../site/libs/proj4js/defs/. What is the error ? "TypeError: wmsLoader.projectSettings.service is undefined " var thisAbstract = wmsLoader.projectSettings.service.abstract Line 1756 in ../site/js/WebgisInit.js Thanks Amandine ----- Mail original ----- De: "Bernhard Ströbl" <[email protected]> À: "Amandine SCHLOUPT" <[email protected]> Cc: [email protected] Envoyé: Lundi 12 Mai 2014 16:54:03 Objet: Re: [Qgis-user] Help for QGIS-Web-Client Hi Amandine, hmm, the GetMap request lacks some parameters: WIDHT HEIGHT BBOX CRS ; not sure if they are optional, I doubt it though, because they tell the server the size of the image you request (WIDHT, HEIGHT) the part of the world you want to see (BBOX) and the projection the map should be in (CRS) Use QGIS desktop to request maps, leave just _one_ layer in your server's project and try to get a map from that in a first step. You must have QGIS server running without errors prior to QWC! Bernhard De: "Andreas Neumann" <[email protected]> À: "Amandine SCHLOUPT" <[email protected]> Envoyé: Lundi 12 Mai 2014 16:34:11 Objet: Re: [Qgis-user] Help for QGIS-Web-Client Hi, The GetMap Request you list below is not complete. It is missing a few required parameters, like SRS, BBOX, WIDTH, HEIGHT. See also QGIS server tutorial: http://hub.qgis.org/projects/quantum-gis/wiki/QGIS_Server_Tutorial It is very hard to help you if the server and web client is not reachable in the public. We are also not yet sure if your server is really working properly. CRS: this is defined in the QGIS project settings, but also in QWC in the GlobalOptions.js - both CRS should be the same. Andreas
_______________________________________________ Qgis-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-user
