[Qgis-developer] qgis WMS server/client issues on Windows

Giovanni Manghi giovanni.manghi at faunalia.pt
Tue Apr 23 04:42:57 PDT 2013


Hi all,

a while ago for testing purposes I played around with QGIS server on
Windows and make it work as wms server and together with QGIS web
client.

Now I followed my notes again[0] and noticed a few (new?) issues with
qgis server and qgis used as wms client.



Here the cases:

*) qgis server 1.8, qgis desktop 1.8 as wms client

the url

http://localhost/cgi-bin/qgis_mapserv.fcgi?map=c:/temp/teste18.qgs

works, while

http://localhost/cgi-bin/qgis_mapserv.fcgi?map=c:\temp\teste18.qgs

does not. The error message is


"(No error code was reported) The WMS vendor also reported:
Configuration file problem : perhaps you left off the .qgs extension?"


and to make it work it is necessary to select the checkboxes "Ignore
GetMap... and Ignore GetFeatureInfo... ".

Is this the correct behavior?







*) qgis server 1.8,  qgis desktop master as wms client

trying add a layer using a wms layer created with qgis server 1.8, the
layer is added in the toc but is not visible and in the log I get:

Map request failed [error:Error downloading
http://localhost/cgi-bin/qgis_mapserv.fcgi?map=c:/temp/teste18.qgs&&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=-23998.1550490432018705,-145303.2600138939451426,48776.5100903988350183,-71056.7674680688360240&CRS=EPSG:3763&WIDTH=376&HEIGHT=384&LAYERS=grid_hex_2000&STYLES=&FORMAT=image/jpeg&DPI=96&MAP_RESOLUTION=96&FORMAT_OPTIONS=dpi:96
- server replied: Internal Server Error
url:http://localhost/cgi-bin/qgis_mapserv.fcgi?map=c:/temp/teste18.qgs&&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=-23998.1550490432018705,-145303.2600138939451426,48776.5100903988350183,-71056.7674680688360240&CRS=EPSG:3763&WIDTH=376&HEIGHT=384&LAYERS=grid_hex_2000&STYLES=&FORMAT=image/jpeg&DPI=96&MAP_RESOLUTION=96&FORMAT_OPTIONS=dpi:96]


is this a bug in the QGIS master WMS client?




*) qgis server master, qgis desktop master or 1.8 as wms client

the url used is like

http://localhost/cgi-bin/qgis_mapserv.fcgi?map=c:/temp/teste20.qgs

in the wms client the layer list is not presented and it just show the
project name. Trying force add this "layer" I get

WMS provider: Cannot calculate extent
(d:\src\qgis\src\providers\wms\qgswmsprovider.cpp : 126 :
QgsWmsProvider::QgsWmsProvider)
Raster layer: Provider is not valid (provider: wms, URI:
IgnoreGetFeatureInfoUrl=1&IgnoreGetMapUrl=1&crs=EPSG:3763&featureCount=10&format=image/jpeg&layers=teste20&styles=&url=http://localhost/cgi-bin/qgis_mapserv.fcgi?map%3Dc:/temp/teste20.qgs
(d:\src\qgis\src\core\raster\qgsrasterlayer.cpp : 826 :
QgsRasterLayer::setDataProvider)


Is QGIS server master not working on Windows?




cheers


-- Giovanni --




[0] http://gis.stackexchange.com/questions/28875/qgis-web-client-in-windows-does-not-load-map


More information about the Qgis-developer mailing list