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

Marco Hugentobler marco.hugentobler at sourcepole.ch
Fri Jan 17 07:27:15 PST 2014


>Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment variable.\r


Do you own a license required to publish ECW images on a server? Afaik 
ECW gdal driver is disabled in QGIS server because of that reason.

Regards,
Marco

On 16.01.2014 17:20, Peter Len wrote:
> Bernard,
>
> Good point.  Well, for any request to get a project file, the error log lists these errors:
>
> [Thu Jan 16 11:14:31 2014] [error] [client 127.0.0.1] Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment variable.\r
> [Thu Jan 16 11:14:31 2014] [error] [client 127.0.0.1] Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment variable.\r
> [Thu Jan 16 11:14:31 2014] [error] [client 127.0.0.1] Warning 1: Unable to find driver JP2ECW to unload from GDAL_SKIP environment variable.\r
> [Thu Jan 16 11:14:31 2014] [error] [client 127.0.0.1] Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment variable.\r
> [Thu Jan 16 11:14:31 2014] [error] [client 127.0.0.1] Warning 1: Unable to find driver JP2ECW to unload from GDAL_SKIP environment variable.\r
>
> Not sure if that has to do with the issue.  The access logs simply list the URL that was presented.  Not sure what you mean by loading the request in the browser and seeing if I get a map of a white page.  When I put the URL in the browser, I get the Service/Capability XML.  It doesn't try to display the map.  I will look more at the XML to see it there is something in there that might indicate something.
>
> - Peter
>
>
> -----Original Message-----
>> From: Bernhard Ströbl <bernhard.stroebl at jena.de>
>> Sent: Jan 16, 2014 10:51 AM
>> To: qgis-user at lists.osgeo.org
>> Subject: Re: [Qgis-user] QGIS Server and qgs project files with ratser layers issue
>>
>> Hi,
>>
>> maybe a projection issue?
>> Check Apache's access log for the GetMap request. Issue this request in
>> the browser: do you get a map or all white?
>>
>> Bernhard
>>
>> Am 16.01.2014 15:56, schrieb Peter Len:
>>> 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
>>> _______________________________________________
>>> Qgis-user mailing list
>>> Qgis-user at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/qgis-user
>>>
>>>
>>> __________ Information from ESET Mail Security, version of virus signature database 9298 (20140116) __________
>>>
>>> The message was checked by ESET Mail Security.
>>> http://www.eset.com
>>>
>>>
>>
>> __________ Information from ESET Mail Security, version of virus signature database 9299 (20140116) __________
>>
>> The message was checked by ESET Mail Security.
>> http://www.eset.com
>>
>>
>> _______________________________________________
>> Qgis-user mailing list
>> Qgis-user at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/qgis-user
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user


-- 
Dr. Marco Hugentobler
Sourcepole -  Linux & Open Source Solutions
Weberstrasse 5, CH-8004 Zürich, Switzerland
marco.hugentobler at sourcepole.ch http://www.sourcepole.ch
Technical Advisor QGIS Project Steering Committee




More information about the Qgis-user mailing list