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

2014-01-17 Thread Marco Hugentobler

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.stro...@jena.de
Sent: Jan 16, 2014 10:51 AM
To: qgis-user@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=WMSVERSION=1.3.0REQUEST=GetCapabilitiesmap=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@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@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

___
Qgis-user mailing list
Qgis-user@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.hugentob...@sourcepole.ch http://www.sourcepole.ch
Technical Advisor QGIS Project Steering Committee

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

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

2014-01-17 Thread Peter Len

Marco,

Interesting.  I never thought about that, but it would make sense.  The only 
layer not displayed was the one that came from the net (as opposed to the 
layers that came from our database).  That would explain why it also did not 
display in ArcMap and OpenLayers when accessed via QGIS Server but if you 
created a WMS layer directly to the web address where the layer was, it would 
be displayed (ie their server could serve it up but no my QGIS Server).  Good 
catch.

Thanks - Peter

-Original Message-
From: Marco Hugentobler marco.hugentob...@sourcepole.ch
Sent: Jan 17, 2014 10:27 AM
To: qgis-user@lists.osgeo.org
Subject: Re: [Qgis-user] QGIS Server and qgs project files with ratser layers 
issue

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.stro...@jena.de
 Sent: Jan 16, 2014 10:51 AM
 To: qgis-user@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=WMSVERSION=1.3.0REQUEST=GetCapabilitiesmap=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@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] QGIS Server and qgs project files with ratser layers issue

2014-01-16 Thread 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=WMSVERSION=1.3.0REQUEST=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@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


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

2014-01-16 Thread Peter Len
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.stro...@jena.de
Sent: Jan 16, 2014 10:51 AM
To: qgis-user@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=WMSVERSION=1.3.0REQUEST=GetCapabilitiesmap=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@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@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

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

2014-01-16 Thread Bernhard Ströbl

Peter,

just for clarification: in order to display a WMS layer the client (= 
QGIS desktop) sends a GetMap request to QGIS server. My idea was to get 
this request from the access log and issue it in the browser in order to 
see if the map is returned ok (= problem on the client side) or the map 
is returned all white (= problem in the GetMap request). The XML you 
mention is the server's answer on the GetCapabilities request sent by 
the client.
But your error log indicates some missing drivers, however I am not an 
expert on raster or GDAL.


regards

Bernhard

Am 16.01.2014 17:20, schrieb Peter Len:

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öblbernhard.stro...@jena.de
Sent: Jan 16, 2014 10:51 AM
To: qgis-user@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=WMSVERSION=1.3.0REQUEST=GetCapabilitiesmap=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@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@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user






__ 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@lists.osgeo.org
http://lists.osgeo.org/mailman

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

2014-01-16 Thread Bernhard Ströbl

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=WMSVERSION=1.3.0REQUEST=GetCapabilitiesmap=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@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@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user