[Qgis-user] QGIS Server and qgs project files with ratser layers issue

Peter Len peteralen at earthlink.net
Thu Jan 16 06:56:48 PST 2014


I finally was able to successfully install QGIS Server on my Windows 7 box.  Not sure what version it is but it is from the lastest OSGeo4W installer.  The purpose for my installation was to see how QGIS Server made QGIS Desktop projects (QGS files) available over a WMS.  Using a URL like the following:

http://localhost:8090/qgis/qgis_mapserv.fcgi.exe?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities &map=c:/Users/pal1/Z_Main/programming/GISData/qgis_files/NYC.qgs

where I access the project file from a path to the file, I find that I can indeed see the various layers within that project file.  So, in essence, if I open my QGIS Desktop (v2.0.1) and go to "Add WMS/WMTS Layer" and add the URL listed above, it will list all of the layers of that project file (after hitting the Connect button).  When selecting layers to add to a new QGIS Project file, I find an oddity:

If the layer is a raster layer, it won't display at all on the map.  As a test, I used the URL http://basemap.nationalmap.gov/ArcGIS/services/USGSShadedReliefOnly/MapServer/WMSServer? to create a WMS layer in a new project.  It displays a world map just fine.  I save and close that project.  I then do a new WMS layer but now point the URL to my QGIS Server with the project file path of the project that was just created.  The result is that I can see the raster layer as an option to choose, but when I do, it does not get displayed on the map.

As per some other instructions I found, I checked the following two options when creating my WMS connection:

- Ignore GetMap URI reported in capabilities
- Ignore GetFeatureInfo URL reported in capabilities

Does anyone know why I cannot display the raster layers from the project file?

Thanks - Peter 



More information about the Qgis-user mailing list