Re: [Qgis-user] QGIS Server a GetFeatureInfo request problems. Not sure what I am missing.

2014-01-23 Thread Peter Len
Bernhard - Thanks for the info.  I am not sure if GeoServer can handle 
cascading GetFeatureInfo requests but the typical scenario would not warrant 
that, meaning the path would be Client(OpenLayers) -- GeoServer -- PostGIS 
whereas using QGIS Server to display QGIS project files would add that extra 
layer.  So, you are right in that it would seemingly work if the QGIS Desktop 
layers were layers based on a direct DB connection, but the point of using 
something like GeoServer is to abstract and consolidate GIS layers into a 
single location for users to access.  Depending on your type of user, they may 
not know (or have a need for) database connection information.  They may not 
know where shape files or GeoTiffs are located.  GeoServer is like ArcCatalog 
where all types of GIS data (database, files like Shape and GeoTiff, WMS, WFS, 
etc) can be managed as layers and then clients (like QGIS Desktop or 
OpenLayers) need only come to GeoServer to get what they need.  Unfortunately 
for us, we can't remove GeoServer from the architecture, so if you are correct 
about QGIS Server not being able to cascade these requests, we will need to 
think of some other solution.  I will create another mailing list question 
specifically for this question.  Thanks for you insight - Peter


-Original Message-
From: Bernhard Ströbl bernhard.stro...@jena.de
Sent: Jan 23, 2014 3:18 AM
To: qgis-user@lists.osgeo.org
Subject: Re: [Qgis-user] QGIS Server a GetFeatureInfo request problems. Not 
sure what I am missing.

Hi Peter,

AFAIK QGIS server does not cascade GetFeaureInfo requests for cascaded 
WMS layers - does geoserver do this?
So if you need GetFeatureInfo you have to load the layers directly from 
source (PostGIS) into your QGIS project (makes more sense anyway)

Bernhard

Am 21.01.2014 16:25, schrieb Peter Len:
 An interesting update to this..  So the scenario that has not been 
 working looks something like this:

 OpenLayers --  QGIS Server --  QGIS Project File --  GeoServer --  
 PostGIS

 I decided to run a test and create a new project file with the same layer 
 (location_view) but this time create a PostGIS layer rather than a WMS layer 
 going to GeoServer.  In this case, the scenario looks like:

 OpenLayers --  QGIS Server --  QGIS Project File --  PostGIS

 So, given that, it appears that something else might be going on.  QGIS 
 Server does seem to be serving up feature information, but not in all 
 scenarios.  Not sure what the hiccup is between QGIS Server and GeoServer 
 but I know that URLs from OpenLayers directly to GeoServer for feature info 
 works fine.


 -Original Message-
 From: Alex Mandeltech_...@wildintellect.com
 Sent: Jan 20, 2014 7:49 PM
 To: Peter Lenpetera...@earthlink.net, qgis-user@lists.osgeo.org
 Subject: Re: [Qgis-user] QGIS Server a GetFeatureInfo request problems. Not 
 sure what I am missing.

 The method I use to troubleshoot these kinds of things involves using
 the Firebug extension in Firefox. Where you can see what the WMS request
 being sent looks like (NET tab), copy and paste it, manipulate it by
 hand until it works and then figure out how to make Openlayers send it
 that way.

 Thanks,
 Alex

 On 01/20/2014 12:44 PM, Peter Len wrote:
 Alex - Thanks for the reply.  Initially, I was trying to run this test 
 using a project file where I used the map parameter in the layer 
 definition.  This got the layers to display within OpenLayers but the 
 GetFeatureInfo request was not working.  I then went back to having the 
 project file in the QGIS Server's bin directory so that no file name has 
 to be listed.  That is the setup I was using in the examples I provided.  
 I went back and ran another test when using a file at some path and used 
 your vendorParams example, but the outcome is the same.


 -Original Message-
 From: Alex Mandeltech_...@wildintellect.com
 Sent: Jan 20, 2014 3:34 PM
 To: Peter Lenpetera...@earthlink.net, qgis-user@lists.osgeo.org
 Subject: Re: [Qgis-user] QGIS Server a GetFeatureInfo request problems. 
 Not sure what I am missing.

 On 01/20/2014 12:19 PM, Peter Len wrote:
 I am using QGIS Server that is running in my OSGeo Apache web server (on 
 Windows 7).  Not sure what version the QGIS Server is but it was from 
 the latest OSGeo4W installer.  I was testing an OpenLayers client to 
 view a QGIS Desktop project file over WMS from the QGIS Server.  All 
 seems good with that.  For example, my OpenLayers code to get  this 
 looks like:

 var url = http://localhost:8090/qgis/qgis_mapserv.fcgi.exe;;
 var layer = new OpenLayers.Layer.WMS( Main Layer, url, {
  layers: 'table_poly,location_view',
  format: 'image/png',
 },
 {
 buffer: 1,
  isBaseLayer: true,
 graphicZIndex: 0,
 }
 );
 map.addLayers([layer]);

 With the above, I can view my layers within OpenLayers.  My next test 
 was to see if I could get the feature info from items on my layers.  I 
 found an example of how to make this call

Re: [Qgis-user] QGIS Server a GetFeatureInfo request problems. Not sure what I am missing.

2014-01-23 Thread Peter Len

Bernhard - Yes, excellent point.  There really is no point of having both a 
GeoServer and QGIS Server as in-house WMS servers.  For our QGIS Desktop 
client, GeoServer is the server we are using, so QGIS Server does not even 
enter the picture.  The reason why QGIS Server is now entering our view scope 
is that we needed a way to serve up our QGIS Desktop project files (.qgs files) 
over WMS and QGIS Server apparently does that.  We need to do that because we 
have a .Net application where we need a control that can view the QGIS project 
files since QGIS does not have a .Net API to essentially create a QGIS .Net 
control.  So, if QGIS Server can serve up the project files using WMS, we can 
possibly create a .Net control (like a browser control using OpenLayers or 
DotSpatial) to consume the WMS.  Our situation may not be typical but it is 
what it is for now.

-Original Message-
From: Bernhard Ströbl bernhard.stro...@jena.de
Sent: Jan 23, 2014 8:51 AM
To: Peter Len petera...@earthlink.net
Cc: qgis-user@lists.osgeo.org
Subject: Re: [Qgis-user] QGIS Server a GetFeatureInfo request problems. Not 
sure what I am missing.

Peter,

IMHO it still does not make sense to deliver a cascaded geoserver layer 
to a client through QGIS server if both servers are inhouse. It is of 
course the right way to use _one_ WMS server; in your case this is 
geoserver. You can point any WMS (or WFS?) client to this server, like 
QGIS desktop or OpenLayers. IMHO there is no need for QGIS server in 
this setting.
Would be a different story though, if geoserver was located outside and 
you are using QGIS server to cascade certain of its layers inhouse (thus 
QGIS would be your _one_ WMS server).

Bernhard

Am 23.01.2014 14:42, schrieb Peter Len:
 Bernhard - Thanks for the info.  I am not sure if GeoServer can handle 
 cascading GetFeatureInfo requests but the typical scenario would not warrant 
 that, meaning the path would be Client(OpenLayers) --  GeoServer --  
 PostGIS whereas using QGIS Server to display QGIS project files would add 
 that extra layer.  So, you are right in that it would seemingly work if the 
 QGIS Desktop layers were layers based on a direct DB connection, but the 
 point of using something like GeoServer is to abstract and consolidate GIS 
 layers into a single location for users to access.  Depending on your type 
 of user, they may not know (or have a need for) database connection 
 information.  They may not know where shape files or GeoTiffs are located.  
 GeoServer is like ArcCatalog where all types of GIS data (database, files 
 like Shape and GeoTiff, WMS, WFS, etc) can be managed as layers and then 
 clients (like QGIS Desktop or OpenLayers) need only come to GeoServer to get 
 what they need.  Unfortunate
 ly for 
us, we can't remove GeoServer from the architecture, so if you are correct 
about QGIS Server not being able to cascade these requests, we will need to 
think of some other solution.  I will create another mailing list question 
specifically for this question.  Thanks for you insight - Peter


 -Original Message-
 From: Bernhard Ströblbernhard.stro...@jena.de
 Sent: Jan 23, 2014 3:18 AM
 To: qgis-user@lists.osgeo.org
 Subject: Re: [Qgis-user] QGIS Server a GetFeatureInfo request problems. Not 
 sure what I am missing.

 Hi Peter,

 AFAIK QGIS server does not cascade GetFeaureInfo requests for cascaded
 WMS layers - does geoserver do this?
 So if you need GetFeatureInfo you have to load the layers directly from
 source (PostGIS) into your QGIS project (makes more sense anyway)

 Bernhard

 Am 21.01.2014 16:25, schrieb Peter Len:
 An interesting update to this..  So the scenario that has not been 
 working looks something like this:

 OpenLayers --   QGIS Server --   QGIS Project File --   GeoServer --   
 PostGIS

 I decided to run a test and create a new project file with the same layer 
 (location_view) but this time create a PostGIS layer rather than a WMS 
 layer going to GeoServer.  In this case, the scenario looks like:

 OpenLayers --   QGIS Server --   QGIS Project File --   PostGIS

 So, given that, it appears that something else might be going on.  QGIS 
 Server does seem to be serving up feature information, but not in all 
 scenarios.  Not sure what the hiccup is between QGIS Server and GeoServer 
 but I know that URLs from OpenLayers directly to GeoServer for feature 
 info works fine.


 -Original Message-
 From: Alex Mandeltech_...@wildintellect.com
 Sent: Jan 20, 2014 7:49 PM
 To: Peter Lenpetera...@earthlink.net, qgis-user@lists.osgeo.org
 Subject: Re: [Qgis-user] QGIS Server a GetFeatureInfo request problems. 
 Not sure what I am missing.

 The method I use to troubleshoot these kinds of things involves using
 the Firebug extension in Firefox. Where you can see what the WMS request
 being sent looks like (NET tab), copy and paste it, manipulate it by
 hand until it works and then figure out how to make Openlayers send it
 that way.

 Thanks

[Qgis-user] QGIS Server and cascading GetFeatureInfo requests

2014-01-23 Thread Peter Len
This is a specific follow-on question from an earlier post (QGIS Server a 
GetFeatureInfo request problems. Not sure what I am missing).  There were 
several good, and helpful, responses to that posting which has led to wanting 
to verify a specific capability, or lack thereof.  In the earlier posting, I 
was having problems getting feature information when I loaded my QGIS project 
file layers in an OpenLayers client using WMS.  The project file contained 
layers that were created in QGIS as a WMS service call to our GeoServer, so the 
route was:

OpenLayers --  QGIS Server (QGIS Project File) --   GeoServer --   PostGIS

Using Firebug, I got the GetFeatureInfo request URL coming from OpenLayers.  
When I pasted this directly in the browser, I received the HTML response but it 
contain no feature info.  I then used a project file where the layers were 
direct connections to the database:

OpenLayers --   QGIS Server (QGIS Project File) --   PostGIS

In this scenario, I was able to get the feature info.  After posting these 
findings, the response was that QGIS Server was not cascading GetFeatureInfo 
requests.  Not sure how that exactly works, but it brings up a problem for us 
and I am looking for a definitive answer to the question of whether QGIS Server 
can get/send GetFeatureInfo requests on to another server, like GeoServer.

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


Re: [Qgis-user] QGIS Server a GetFeatureInfo request problems. Not sure what I am missing.

2014-01-21 Thread Peter Len
Alex - Good idea with the Firebug.  This is what I found  The first URL is 
the one being sent to the QGIS Server (returns no results) and the second one 
is the URL that gets sent to GeoServer (returns results):

http://localhost:8090/qgis/qgis_mapserv.fcgi.exe?LAYERS=location_viewQUERY_LAYERS=location_viewSTYLES=SERVICE=WMSVERSION=1.1.1REQUEST=GetFeatureInfoBBOX=-215.683594%2C-59.238281%2C215.683594%2C59.238281FEATURE_COUNT=10HEIGHT=337WIDTH=1227FORMAT=image%2FpngINFO_FORMAT=text%2FhtmlSRS=EPSG%3A4326X=650Y=106

http://localhost:8080/geoserver/Postgres/wms?LAYERS=Postgres%3Alocation_viewQUERY_LAYERS=Postgres%3Alocation_viewSTYLES=SERVICE=WMSVERSION=1.1.1REQUEST=GetFeatureInfoBBOX=-215.683594%2C-59.238281%2C215.683594%2C59.238281FEATURE_COUNT=10HEIGHT=337WIDTH=1227FORMAT=image%2FpngINFO_FORMAT=text%2FhtmlSRS=EPSG%3A4326X=650Y=106

You can see that both URLs contain the same parameters and values, except that 
the call to the GeoServer contains a workspace name with the layer name.  Just 
as a test, I added the workspace name to the QGIS Server URL but that simply 
failed because it was an incorrect reference.  The QGIS Server URL is going to 
a QGIS project file which contains a layer that comes from my GeoServer.  So, 
in the end, we are talking about the same data set for both URLs, except one is 
going through QGIS Server as a pass-through to the GeoServer.

So, given that there does not seem to be an issue with the URL or its 
parameters per se, I would have to believe that there must be some something 
within the QGIS Server configuration.  I understand that QGIS Server is 
supposed to handle GetFeatureInfo requests so I must be missing something in 
the QGIS Server configuration, some extra parameter in the URL, or 

Any new thoughts from the QGIS Server gurus?

Thanks - Peter

 





-Original Message-
From: Alex Mandel tech_...@wildintellect.com
Sent: Jan 20, 2014 7:49 PM
To: Peter Len petera...@earthlink.net, qgis-user@lists.osgeo.org
Subject: Re: [Qgis-user] QGIS Server a GetFeatureInfo request problems. Not 
sure what I am missing.

The method I use to troubleshoot these kinds of things involves using
the Firebug extension in Firefox. Where you can see what the WMS request
being sent looks like (NET tab), copy and paste it, manipulate it by
hand until it works and then figure out how to make Openlayers send it
that way.

Thanks,
Alex

On 01/20/2014 12:44 PM, Peter Len wrote:
 Alex - Thanks for the reply.  Initially, I was trying to run this test using 
 a project file where I used the map parameter in the layer definition.  
 This got the layers to display within OpenLayers but the GetFeatureInfo 
 request was not working.  I then went back to having the project file in the 
 QGIS Server's bin directory so that no file name has to be listed.  That is 
 the setup I was using in the examples I provided.  I went back and ran 
 another test when using a file at some path and used your vendorParams 
 example, but the outcome is the same.  
 
 
 -Original Message-
 From: Alex Mandel tech_...@wildintellect.com
 Sent: Jan 20, 2014 3:34 PM
 To: Peter Len petera...@earthlink.net, qgis-user@lists.osgeo.org
 Subject: Re: [Qgis-user] QGIS Server a GetFeatureInfo request problems. Not 
 sure what I am missing.

 On 01/20/2014 12:19 PM, Peter Len wrote:
 I am using QGIS Server that is running in my OSGeo Apache web server (on 
 Windows 7).  Not sure what version the QGIS Server is but it was from the 
 latest OSGeo4W installer.  I was testing an OpenLayers client to view a 
 QGIS Desktop project file over WMS from the QGIS Server.  All seems good 
 with that.  For example, my OpenLayers code to get  this looks like:

 var url = http://localhost:8090/qgis/qgis_mapserv.fcgi.exe;;
 var layer = new OpenLayers.Layer.WMS( Main Layer, url, {
layers: 'table_poly,location_view',
format: 'image/png',
},
{
buffer: 1, 
isBaseLayer: true, 
graphicZIndex: 0, 
}
 );
 map.addLayers([layer]);

 With the above, I can view my layers within OpenLayers.  My next test was 
 to see if I could get the feature info from items on my layers.  I found 
 an example of how to make this call in OpenLayers and it looks like:

 var info = new OpenLayers.Control.WMSGetFeatureInfo({
   url: url,
   title: 'Identify features by clicking',
   queryVisible: true,
   eventListeners: {
 getfeatureinfo: function(event) {
 alert(Got feature info); 
 
 }
  }
   });
 map.addControl(info);
 info.activate();

 When I tried this, I didn't get anything except a spinning cursor.  I then 
 tried another test to see if that was the correct way to ask for feature 
 info so I changed the URL for the layers to get the layers from my 
 GeoServer rather

Re: [Qgis-user] QGIS Server a GetFeatureInfo request problems. Not sure what I am missing.

2014-01-21 Thread Peter Len
Andreas - I had previously used the map parameter per an earlier response, but 
it didn't help.  I have two test versions of this.  One that does tell QGIS 
Server to use a project file at the path listed in the map parameter and one 
that does not list a map parameter, in which case QGIS Server uses the first 
project file it finds in its bin directory.  I have been doing my main testing 
using the project in the bin directory to eliminate any problems that may be 
due to adding the map parameter.  When not adding the map parameter, QGIS 
Server serves up the correct layer info for display in my OpenLayers, it just 
seems to be a problem when asking for the GetFeatureInfo.

- Peter


-Original Message-
From: Andreas Neumann a.neum...@carto.net
Sent: Jan 21, 2014 8:49 AM
To: qgis-user@lists.osgeo.org
Subject: Re: [Qgis-user] QGIS Server a GetFeatureInfo request problems. Not 
sure what I am missing.

Peter,

I think you are just missing the map parameter. Should be:

map=/path/to/your/projectfile.qgs

This is essential, as otherwise QGIS server doesn't know which project
you are refering to.

As Alex said, this is a vendor-specific parameter. Alternatively to the
map parameter you can use a technique in Apache called URL-rewriting,
decribed in the README of QGIS web client. This rewrites the URL so that
the map parameter gets added.

Andreas

Am 21.01.2014 14:41, schrieb Peter Len:
 Alex - Good idea with the Firebug.  This is what I found  The first URL 
 is the one being sent to the QGIS Server (returns no results) and the second 
 one is the URL that gets sent to GeoServer (returns results):
 
 http://localhost:8090/qgis/qgis_mapserv.fcgi.exe?LAYERS=location_viewQUERY_LAYERS=location_viewSTYLES=SERVICE=WMSVERSION=1.1.1REQUEST=GetFeatureInfoBBOX=-215.683594%2C-59.238281%2C215.683594%2C59.238281FEATURE_COUNT=10HEIGHT=337WIDTH=1227FORMAT=image%2FpngINFO_FORMAT=text%2FhtmlSRS=EPSG%3A4326X=650Y=106
 
 http://localhost:8080/geoserver/Postgres/wms?LAYERS=Postgres%3Alocation_viewQUERY_LAYERS=Postgres%3Alocation_viewSTYLES=SERVICE=WMSVERSION=1.1.1REQUEST=GetFeatureInfoBBOX=-215.683594%2C-59.238281%2C215.683594%2C59.238281FEATURE_COUNT=10HEIGHT=337WIDTH=1227FORMAT=image%2FpngINFO_FORMAT=text%2FhtmlSRS=EPSG%3A4326X=650Y=106
 
 You can see that both URLs contain the same parameters and values, except 
 that the call to the GeoServer contains a workspace name with the layer 
 name.  Just as a test, I added the workspace name to the QGIS Server URL but 
 that simply failed because it was an incorrect reference.  The QGIS Server 
 URL is going to a QGIS project file which contains a layer that comes from 
 my GeoServer.  So, in the end, we are talking about the same data set for 
 both URLs, except one is going through QGIS Server as a pass-through to the 
 GeoServer.
 
 So, given that there does not seem to be an issue with the URL or its 
 parameters per se, I would have to believe that there must be some something 
 within the QGIS Server configuration.  I understand that QGIS Server is 
 supposed to handle GetFeatureInfo requests so I must be missing something in 
 the QGIS Server configuration, some extra parameter in the URL, or 
 
 Any new thoughts from the QGIS Server gurus?
 
 Thanks - Peter
 
  
 
 
 
 
 
 -Original Message-
 From: Alex Mandel tech_...@wildintellect.com
 Sent: Jan 20, 2014 7:49 PM
 To: Peter Len petera...@earthlink.net, qgis-user@lists.osgeo.org
 Subject: Re: [Qgis-user] QGIS Server a GetFeatureInfo request problems. Not 
 sure what I am missing.

 The method I use to troubleshoot these kinds of things involves using
 the Firebug extension in Firefox. Where you can see what the WMS request
 being sent looks like (NET tab), copy and paste it, manipulate it by
 hand until it works and then figure out how to make Openlayers send it
 that way.

 Thanks,
 Alex

 On 01/20/2014 12:44 PM, Peter Len wrote:
 Alex - Thanks for the reply.  Initially, I was trying to run this test 
 using a project file where I used the map parameter in the layer 
 definition.  This got the layers to display within OpenLayers but the 
 GetFeatureInfo request was not working.  I then went back to having the 
 project file in the QGIS Server's bin directory so that no file name has 
 to be listed.  That is the setup I was using in the examples I provided.  
 I went back and ran another test when using a file at some path and used 
 your vendorParams example, but the outcome is the same.  


 -Original Message-
 From: Alex Mandel tech_...@wildintellect.com
 Sent: Jan 20, 2014 3:34 PM
 To: Peter Len petera...@earthlink.net, qgis-user@lists.osgeo.org
 Subject: Re: [Qgis-user] QGIS Server a GetFeatureInfo request problems. 
 Not sure what I am missing.

 On 01/20/2014 12:19 PM, Peter Len wrote:
 I am using QGIS Server that is running in my OSGeo Apache web server (on 
 Windows 7).  Not sure what version the QGIS Server is but it was from 
 the latest OSGeo4W installer.  I was testing

Re: [Qgis-user] QGIS Server a GetFeatureInfo request problems. Not sure what I am missing.

2014-01-21 Thread Peter Len
Forgot to mention one thing.  Even though QGIS Server is not sending back 
any results from the request, it does send back an HTML response that just 
contains an empty table, but it does reference that this is a GetFeatureInfo 
result and has the HTML table lined up to add results if it had any.  The 
response is listed as:


HEAD
TITLE GetFeatureInfo results /TITLE
meta http-equiv=Content-Type content=text/html;charset=utf-8
/HEAD
BODY
TABLE border=1 width=100%
TRTH width=25%Layer/THTDlocation_view/TD/TR
/BR/TABLE
BR/BR
/BODY

So, it does seem that QGIS Server understands that it got a request for feature 
info and it created a valid response.  For whatever reason, though, it could 
not find the feature(s) for the BBOX.

-Original Message-
From: Andreas Neumann a.neum...@carto.net
Sent: Jan 21, 2014 8:49 AM
To: qgis-user@lists.osgeo.org
Subject: Re: [Qgis-user] QGIS Server a GetFeatureInfo request problems. Not 
sure what I am missing.

Peter,

I think you are just missing the map parameter. Should be:

map=/path/to/your/projectfile.qgs

This is essential, as otherwise QGIS server doesn't know which project
you are refering to.

As Alex said, this is a vendor-specific parameter. Alternatively to the
map parameter you can use a technique in Apache called URL-rewriting,
decribed in the README of QGIS web client. This rewrites the URL so that
the map parameter gets added.

Andreas

Am 21.01.2014 14:41, schrieb Peter Len:
 Alex - Good idea with the Firebug.  This is what I found  The first URL 
 is the one being sent to the QGIS Server (returns no results) and the second 
 one is the URL that gets sent to GeoServer (returns results):
 
 http://localhost:8090/qgis/qgis_mapserv.fcgi.exe?LAYERS=location_viewQUERY_LAYERS=location_viewSTYLES=SERVICE=WMSVERSION=1.1.1REQUEST=GetFeatureInfoBBOX=-215.683594%2C-59.238281%2C215.683594%2C59.238281FEATURE_COUNT=10HEIGHT=337WIDTH=1227FORMAT=image%2FpngINFO_FORMAT=text%2FhtmlSRS=EPSG%3A4326X=650Y=106
 
 http://localhost:8080/geoserver/Postgres/wms?LAYERS=Postgres%3Alocation_viewQUERY_LAYERS=Postgres%3Alocation_viewSTYLES=SERVICE=WMSVERSION=1.1.1REQUEST=GetFeatureInfoBBOX=-215.683594%2C-59.238281%2C215.683594%2C59.238281FEATURE_COUNT=10HEIGHT=337WIDTH=1227FORMAT=image%2FpngINFO_FORMAT=text%2FhtmlSRS=EPSG%3A4326X=650Y=106
 
 You can see that both URLs contain the same parameters and values, except 
 that the call to the GeoServer contains a workspace name with the layer 
 name.  Just as a test, I added the workspace name to the QGIS Server URL but 
 that simply failed because it was an incorrect reference.  The QGIS Server 
 URL is going to a QGIS project file which contains a layer that comes from 
 my GeoServer.  So, in the end, we are talking about the same data set for 
 both URLs, except one is going through QGIS Server as a pass-through to the 
 GeoServer.
 
 So, given that there does not seem to be an issue with the URL or its 
 parameters per se, I would have to believe that there must be some something 
 within the QGIS Server configuration.  I understand that QGIS Server is 
 supposed to handle GetFeatureInfo requests so I must be missing something in 
 the QGIS Server configuration, some extra parameter in the URL, or 
 
 Any new thoughts from the QGIS Server gurus?
 
 Thanks - Peter
 
  
 
 
 
 
 
 -Original Message-
 From: Alex Mandel tech_...@wildintellect.com
 Sent: Jan 20, 2014 7:49 PM
 To: Peter Len petera...@earthlink.net, qgis-user@lists.osgeo.org
 Subject: Re: [Qgis-user] QGIS Server a GetFeatureInfo request problems. Not 
 sure what I am missing.

 The method I use to troubleshoot these kinds of things involves using
 the Firebug extension in Firefox. Where you can see what the WMS request
 being sent looks like (NET tab), copy and paste it, manipulate it by
 hand until it works and then figure out how to make Openlayers send it
 that way.

 Thanks,
 Alex

 On 01/20/2014 12:44 PM, Peter Len wrote:
 Alex - Thanks for the reply.  Initially, I was trying to run this test 
 using a project file where I used the map parameter in the layer 
 definition.  This got the layers to display within OpenLayers but the 
 GetFeatureInfo request was not working.  I then went back to having the 
 project file in the QGIS Server's bin directory so that no file name has 
 to be listed.  That is the setup I was using in the examples I provided.  
 I went back and ran another test when using a file at some path and used 
 your vendorParams example, but the outcome is the same.  


 -Original Message-
 From: Alex Mandel tech_...@wildintellect.com
 Sent: Jan 20, 2014 3:34 PM
 To: Peter Len petera...@earthlink.net, qgis-user@lists.osgeo.org
 Subject: Re: [Qgis-user] QGIS Server a GetFeatureInfo request problems. 
 Not sure what I am missing.

 On 01/20/2014 12:19 PM, Peter Len wrote:
 I am using QGIS Server that is running in my OSGeo Apache web server (on 
 Windows 7).  Not sure what version the QGIS Server is but it was from 
 the latest

Re: [Qgis-user] QGIS Server a GetFeatureInfo request problems. Not sure what I am missing.

2014-01-21 Thread Peter Len
An interesting update to this..  So the scenario that has not been working 
looks something like this:

OpenLayers -- QGIS Server -- QGIS Project File -- GeoServer -- PostGIS

I decided to run a test and create a new project file with the same layer 
(location_view) but this time create a PostGIS layer rather than a WMS layer 
going to GeoServer.  In this case, the scenario looks like:

OpenLayers -- QGIS Server -- QGIS Project File -- PostGIS

So, given that, it appears that something else might be going on.  QGIS Server 
does seem to be serving up feature information, but not in all scenarios.  Not 
sure what the hiccup is between QGIS Server and GeoServer but I know that URLs 
from OpenLayers directly to GeoServer for feature info works fine.


-Original Message-
From: Alex Mandel tech_...@wildintellect.com
Sent: Jan 20, 2014 7:49 PM
To: Peter Len petera...@earthlink.net, qgis-user@lists.osgeo.org
Subject: Re: [Qgis-user] QGIS Server a GetFeatureInfo request problems. Not 
sure what I am missing.

The method I use to troubleshoot these kinds of things involves using
the Firebug extension in Firefox. Where you can see what the WMS request
being sent looks like (NET tab), copy and paste it, manipulate it by
hand until it works and then figure out how to make Openlayers send it
that way.

Thanks,
Alex

On 01/20/2014 12:44 PM, Peter Len wrote:
 Alex - Thanks for the reply.  Initially, I was trying to run this test using 
 a project file where I used the map parameter in the layer definition.  
 This got the layers to display within OpenLayers but the GetFeatureInfo 
 request was not working.  I then went back to having the project file in the 
 QGIS Server's bin directory so that no file name has to be listed.  That is 
 the setup I was using in the examples I provided.  I went back and ran 
 another test when using a file at some path and used your vendorParams 
 example, but the outcome is the same.  
 
 
 -Original Message-
 From: Alex Mandel tech_...@wildintellect.com
 Sent: Jan 20, 2014 3:34 PM
 To: Peter Len petera...@earthlink.net, qgis-user@lists.osgeo.org
 Subject: Re: [Qgis-user] QGIS Server a GetFeatureInfo request problems. Not 
 sure what I am missing.

 On 01/20/2014 12:19 PM, Peter Len wrote:
 I am using QGIS Server that is running in my OSGeo Apache web server (on 
 Windows 7).  Not sure what version the QGIS Server is but it was from the 
 latest OSGeo4W installer.  I was testing an OpenLayers client to view a 
 QGIS Desktop project file over WMS from the QGIS Server.  All seems good 
 with that.  For example, my OpenLayers code to get  this looks like:

 var url = http://localhost:8090/qgis/qgis_mapserv.fcgi.exe;;
 var layer = new OpenLayers.Layer.WMS( Main Layer, url, {
layers: 'table_poly,location_view',
format: 'image/png',
},
{
buffer: 1, 
isBaseLayer: true, 
graphicZIndex: 0, 
}
 );
 map.addLayers([layer]);

 With the above, I can view my layers within OpenLayers.  My next test was 
 to see if I could get the feature info from items on my layers.  I found 
 an example of how to make this call in OpenLayers and it looks like:

 var info = new OpenLayers.Control.WMSGetFeatureInfo({
   url: url,
   title: 'Identify features by clicking',
   queryVisible: true,
   eventListeners: {
 getfeatureinfo: function(event) {
 alert(Got feature info); 
 
 }
  }
   });
 map.addControl(info);
 info.activate();

 When I tried this, I didn't get anything except a spinning cursor.  I then 
 tried another test to see if that was the correct way to ask for feature 
 info so I changed the URL for the layers to get the layers from my 
 GeoServer rather than from QGIS Server (the project file got these layers 
 initially from GeoServer so we are talking about the same layer source).  
 That worked just fine and I was able to get individual feature 
 information.  After switching back to point to my QGIS Server I started to 
 look at the Apache web server logs and the GeoServer output screen.  The 
 Apache logs didn't list anything related but the GeoServer console listed 
 the following:


 WMS GetFeatureInfo in OpenLayers does in fact work with QGIS Server with
 one trick, vendorParams you need to specify the qgs file to reference.

 infoControls = {
click: new OpenLayers.Control.WMSGetFeatureInfo({
url: http://yoursite.com/cgi-bin/qgis_mapserv.fcgi;,
title: 'Identify features by clicking',
layers: [yourlayer],
queryVisible: true,
vendorParams:{map:/path/to/map/project.qgs}
}),


 Thanks,
 Alex
 
 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org

[Qgis-user] QGIS Server a GetFeatureInfo request problems. Not sure what I am missing.

2014-01-20 Thread Peter Len
I am using QGIS Server that is running in my OSGeo Apache web server (on 
Windows 7).  Not sure what version the QGIS Server is but it was from the 
latest OSGeo4W installer.  I was testing an OpenLayers client to view a QGIS 
Desktop project file over WMS from the QGIS Server.  All seems good with that.  
For example, my OpenLayers code to get  this looks like:

var url = http://localhost:8090/qgis/qgis_mapserv.fcgi.exe;;
var layer = new OpenLayers.Layer.WMS( Main Layer, url, {
layers: 'table_poly,location_view',
format: 'image/png',
   },
   {
   buffer: 1, 
isBaseLayer: true, 
   graphicZIndex: 0, 
   }
);
map.addLayers([layer]);

With the above, I can view my layers within OpenLayers.  My next test was to 
see if I could get the feature info from items on my layers.  I found an 
example of how to make this call in OpenLayers and it looks like:

var info = new OpenLayers.Control.WMSGetFeatureInfo({
  url: url,
  title: 'Identify features by clicking',
  queryVisible: true,
  eventListeners: {
getfeatureinfo: function(event) {
alert(Got feature info);  
   
}
 }
  });
map.addControl(info);
info.activate();

When I tried this, I didn't get anything except a spinning cursor.  I then 
tried another test to see if that was the correct way to ask for feature info 
so I changed the URL for the layers to get the layers from my GeoServer rather 
than from QGIS Server (the project file got these layers initially from 
GeoServer so we are talking about the same layer source).  That worked just 
fine and I was able to get individual feature information.  After switching 
back to point to my QGIS Server I started to look at the Apache web server logs 
and the GeoServer output screen.  The Apache logs didn't list anything related 
but the GeoServer console listed the following:

20 Jan 13:06:57 INFO [geoserver.wms] -
Request: getServiceInfo
20 Jan 13:06:57 INFO [geoserver.wms] -
Request: getCapabilities
Namespace = Postgres
UpdateSequence = null
Request = GetCapabilities
Version = 1.3.0
RequestCharset = null
RawKvp = {SERVICE=WMS, REQUEST=GetCapabilities}
Get = false
BaseUrl = http://localhost:8080/geoserver/
20 Jan 13:06:57 WARN [wms.capabilities] - Map output format text/html does not i
nclude mime type in output format names. Will be excluded from capabilities docu
ment.
20 Jan 13:06:57 WARN [wms.capabilities] - Map output format application/xml does
 not include mime type in output format names. Will be excluded from capabilitie
s document.

This occurred just after clicking on my OpenLayers map, which in turn triggered 
the WMSGetFeatureInfo request.  I noticed that there was no reference to 
GetFeatureInfo.  So... I am not sure what to make of this.  Should my 
OpenLayers call be something different?  Does QGIS Server not serve up features 
from layers within a project file?  I had found some references concerning a 
problem with QGIS Server and GetFeatureInfo calls (Bug #8656) but the request 
URL listed seemed to be something different than my scenario via OpenLayers and 
to a project file layer.  

Any thoughts? 

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


Re: [Qgis-user] QGIS Server a GetFeatureInfo request problems. Not sure what I am missing.

2014-01-20 Thread Peter Len
Alex - Thanks for the reply.  Initially, I was trying to run this test using a 
project file where I used the map parameter in the layer definition.  This 
got the layers to display within OpenLayers but the GetFeatureInfo request was 
not working.  I then went back to having the project file in the QGIS Server's 
bin directory so that no file name has to be listed.  That is the setup I was 
using in the examples I provided.  I went back and ran another test when using 
a file at some path and used your vendorParams example, but the outcome is 
the same.  


-Original Message-
From: Alex Mandel tech_...@wildintellect.com
Sent: Jan 20, 2014 3:34 PM
To: Peter Len petera...@earthlink.net, qgis-user@lists.osgeo.org
Subject: Re: [Qgis-user] QGIS Server a GetFeatureInfo request problems. Not 
sure what I am missing.

On 01/20/2014 12:19 PM, Peter Len wrote:
 I am using QGIS Server that is running in my OSGeo Apache web server (on 
 Windows 7).  Not sure what version the QGIS Server is but it was from the 
 latest OSGeo4W installer.  I was testing an OpenLayers client to view a QGIS 
 Desktop project file over WMS from the QGIS Server.  All seems good with 
 that.  For example, my OpenLayers code to get  this looks like:
 
 var url = http://localhost:8090/qgis/qgis_mapserv.fcgi.exe;;
 var layer = new OpenLayers.Layer.WMS( Main Layer, url, {
  layers: 'table_poly,location_view',
  format: 'image/png',
},
{
buffer: 1, 
  isBaseLayer: true, 
graphicZIndex: 0, 
}
 );
 map.addLayers([layer]);
 
 With the above, I can view my layers within OpenLayers.  My next test was to 
 see if I could get the feature info from items on my layers.  I found an 
 example of how to make this call in OpenLayers and it looks like:
 
 var info = new OpenLayers.Control.WMSGetFeatureInfo({
   url: url,
   title: 'Identify features by clicking',
   queryVisible: true,
   eventListeners: {
 getfeatureinfo: function(event) {
 alert(Got feature info);   
   
 }
  }
   });
 map.addControl(info);
 info.activate();
 
 When I tried this, I didn't get anything except a spinning cursor.  I then 
 tried another test to see if that was the correct way to ask for feature 
 info so I changed the URL for the layers to get the layers from my GeoServer 
 rather than from QGIS Server (the project file got these layers initially 
 from GeoServer so we are talking about the same layer source).  That worked 
 just fine and I was able to get individual feature information.  After 
 switching back to point to my QGIS Server I started to look at the Apache 
 web server logs and the GeoServer output screen.  The Apache logs didn't 
 list anything related but the GeoServer console listed the following:
 

WMS GetFeatureInfo in OpenLayers does in fact work with QGIS Server with
one trick, vendorParams you need to specify the qgs file to reference.

infoControls = {
click: new OpenLayers.Control.WMSGetFeatureInfo({
url: http://yoursite.com/cgi-bin/qgis_mapserv.fcgi;,
title: 'Identify features by clicking',
layers: [yourlayer],
queryVisible: true,
vendorParams:{map:/path/to/map/project.qgs}
}),


Thanks,
Alex

___
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 project files served to OpenLayers question

2014-01-17 Thread Peter Len
I have been playing with the QGIS Server and looking at how it serves up QGIS 
Desktop project files using WMS.  My initial tests were to create a new WMS 
layer in QGIS Desktop which used a URL to serve up a project file.  When I did 
this, QGIS Desktop listed all of the layers within the project file to choose 
from.  I could pick and choose which ones to add to the new project file.  I 
also found that when I selected a feature layer (feature points from our 
database), the Identify Features tool showed the selected feature metadata 
which meant that although the layer was served up over WMS, it still understood 
it to be a feature layer.  The next step was to try to load the project file in 
OpenLayers (using an OpenLayers.Layer.WMS object).  When trying this, I found 
the following:

1) I needed to list the WMS layer as an image
2) I could give the file path to the project file using the map option
3) I had to list the name of the layer.  When I used a GetCapabilities URL in 
the browser for a given project file, I see that there is always a Layer with 
the name of the project file and SOMETIMES there is another layer name for one 
of the actual layers within the project.  I have yet to see a GetCapabilities 
for a project file that listed all the layer names.  In any case, if I used the 
project file name as the layer name option, it would indeed display everything 
on the OpenLayers map.

I guess as expected, because the layer was displayed as an image and as a 
single layer, there was no access to the feature metadata (like there is with 
the Feature Identify tool in QGIS Desktop).  The layer was simply a WMS image.  
Based on this, my conclusion is that there is no way to select and view 
individual features from my QGIS project file when the client is a 
browser-based mapping API like OpenLayers.  Does this sound about right, or am 
I missing some other way to have OpenLayers understand that there are actual 
features, like points, lines, and polygons?

Thanks for any thoughts - Peter  
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Problems loading/accessing QGIS Server.... what am I missing?

2014-01-16 Thread Peter Len
Okay, the wiki has been updated with the additional items I found for the 
Windows installation


-Original Message-
From: Andreas Neumann a.neum...@carto.net
Sent: Jan 15, 2014 3:50 PM
To: qgis-user@lists.osgeo.org
Subject: Re: [Qgis-user] Problems loading/accessing QGIS Server what am I  
missing?

Hi Peter,

Thanks for communicating this. Most QGIS server users are on Linux. The
Windows QGIS server users are a smaller group and only recently it seems
that more people use QGIS server on Windows. It is therefore important
the Windows users document the issues they have and the workarounds.

If possible - could you please add this to the QGIS server tutorial wiki
http://hub.qgis.org/projects/quantum-gis/wiki/QGIS_Server_Tutorial

Thanks a lot,
Andreas

Am 15.01.2014 21:42, schrieb Peter Len:
 So, this was fixed by copying all of the .dll libraries from c:/OSGeo4W/bin 
 to c:/OSGeo4W/apps/qgis/bin.  Not sure why none of the references I used 
 indicated this, so I am not fully comfortable that it is truly working.  I 
 have been able to load a QGIS Desktop project served up by QGIS Server to 
 both ArcMap and QGIS so at least that is a start.   
 
 
 -Original Message-
 From: Peter Len petera...@earthlink.net
 Sent: Jan 15, 2014 1:13 PM
 To: qgis-user@lists.osgeo.org
 Subject: [Qgis-user] Problems loading/accessing QGIS Server what am I   
 missing?

 I am using QGIS and wanted to install the QGIS Server on a Windows 7 box.  
 I was looking at the following pages for how to do an install on Windows 7:

 http://hub.qgis.org/projects/quantum-gis/wiki/QGIS_Server_Tutorial
 http://anitagraser.com/2012/04/06/qgis-server-on-windows7-step-by-step/

 I got the installer from 
 http://download.osgeo.org/osgeo4w/osgeo4w-setup.exe.  When I ran the 
 install, I did an advanced installation and selected to install the Apache 
 Webserver and the QGIS Server.  The instructions went on to say that for 
 Windows installs you must change FastCGI to just the CGI in the 
 httpd_qgis.conf file. So now the httpd_qgis.conf references:

 LoadModule cgi_module modules/mod_cgi.so
 SetHandler cgi-script

 After another change in that conf file to change DefaultInitEnv to SetEnv 
 (using DefaultInitEnv threw errors).  After that, I was able to start the 
 Apache web server and was able go to the default page.  I noticed that the 
 page indicated that there was only 1 osgeo4w application installed 
 (phpinfo).

 The instructions then indicated that the following GetCapabilities call 
 should work:

 http://localhost:8090/qgis/qgis_mapserv.fcgi.exe?SERVICE=WMSVERSION=1.3.0REQUEST=GetCapabilities

 When I ran this in the browser, it indicated that there was an error.  The 
 error log file stated:

 Premature end of script headers: qgis_mapserv.fcgi.exe

 This made me think that there was some mismatch between changing the conf 
 file to use cgi rather than fcgi.  There is no qgis_mapserv.cgi.exe, 
 however.  Not sure what I am missing here.  Both sets of instructions were 
 followed and they both indicate it should be working.  Does anyone know 
 what I may be missing?

 Thanks - Peter
 ___
 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
 

___
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] Problems loading/accessing QGIS Server.... what am I missing?

2014-01-16 Thread Peter Len

Jurgen,

Thanks for the reply.  The OSGeo4W installer does not come with a mod_fcgid.so 
file.  I have seen some references that seem to indicate that maybe the Windows 
install should now work with FastCGI, but the installation doesn't include it.  
A regular Apache Web Server (outside of OSGeo) install does not include it 
either.  I tried downloading the module separately but I got an error when 
trying to start Apache so it either wasn't the right one to use or it still 
can't be used on Windows.

- Peter

-Original Message-
From: Jürgen E. Fischer j...@norbit.de
Sent: Jan 16, 2014 9:13 AM
To: qgis-user@lists.osgeo.org
Subject: Re: [Qgis-user] Problems loading/accessing QGIS Server what   
am  I missing?

Hi Peter,

On Thu, 16. Jan 2014 at 08:42:15 -0500, Peter Len wrote:
 Okay, the wiki has been updated with the additional items I found for the
 Windows installation

Doesn't mod_fcgid work?


Jürgen

-- 
Jürgen E. Fischer norBIT GmbH   Tel. +49-4931-918175-31
Dipl.-Inf. (FH)   Rheinstraße 13Fax. +49-4931-918175-50
Software Engineer D-26506 Norden   http://www.norbit.de
QGIS PSC member (RM)   IRC: jef on FreeNode
 

-- 
norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH
Rheinstrasse 13, 26506 Norden
GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502

___
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

[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

[Qgis-user] Issues with OSGeo4W Apache startup (for QGIS Server)

2014-01-15 Thread Peter Len
I am using QGIS and wanted to install the QGIS Server.  I was looking at the 
following page for how to do an install: 
http://hub.qgis.org/projects/quantum-gis/wiki/QGIS_Server_Tutorial.  It has me 
get the installer from http://download.osgeo.org/osgeo4w/osgeo4w-setup.exe.  
When I ran the install, I did an advanced installation and selected to install 
the Apache Webserver and the QGIS Server.  The instructions went on to say that 
for Windows installs you must change FastCGI to just the CGI in the 
httpd_qgis.conf file.  When I went to start apache, I get the following error:

C:\OSGeo4W\apache\binhttpd.exe -k start -n Apache OSGEO4W Web Server
[Wed Jan 15 10:45:39 2014] [warn] module cgi_module is already loaded, skipping
Syntax error on line 4 of C:/OSGeo4W/httpd.d/httpd_qgis.conf:
Invalid command 'DefaultInitEnv', perhaps misspelled or defined by a module not 
included in the server configuration


The conf file looks like:

#LoadModule fcgid_module modules/mod_fcgid.so
LoadModule cgi_module modules/mod_cgi.so

DefaultInitEnv QGIS_PREFIX_PATH C:\OSGeo4W\apps\qgis
DefaultInitEnv TEMP C:\Users\pal1\AppData\Local\Temp
DefaultInitEnv PATH 
C:\OSGeo4W\bin;C:\OSGeo4W\apps\qgis\bin;C:\OSGeo4W\apps\grass\grass-6.4.3\bin;C:\OSGeo4W\apps\grass\grass-6.4.3\lib;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem

Alias /qgis/ C:\OSGeo4W/apps/qgis/bin/

Directory C:\OSGeo4W/apps/qgis/bin/
#SetHandler fcgid-script
SetHandler cgi-script
Options ExecCGI
Order allow,deny
Allow from all
/Directory

There are three lines that use the DefaultInitEnv declaration and it will bomb 
out on the first one that is listed (I switched the order to see if it was one 
in particular).  

So, does anyone know where DefaultInitEnv is suppose to be defined as per the 
error message.  Not sure what I may be missing from this installation that is 
creating this failure.

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


[Qgis-user] Problems loading/accessing QGIS Server.... what am I missing?

2014-01-15 Thread Peter Len
I am using QGIS and wanted to install the QGIS Server on a Windows 7 box.  I 
was looking at the following pages for how to do an install on Windows 7:

http://hub.qgis.org/projects/quantum-gis/wiki/QGIS_Server_Tutorial
http://anitagraser.com/2012/04/06/qgis-server-on-windows7-step-by-step/

I got the installer from http://download.osgeo.org/osgeo4w/osgeo4w-setup.exe.  
When I ran the install, I did an advanced installation and selected to install 
the Apache Webserver and the QGIS Server.  The instructions went on to say that 
for Windows installs you must change FastCGI to just the CGI in the 
httpd_qgis.conf file. So now the httpd_qgis.conf references:

LoadModule cgi_module modules/mod_cgi.so
SetHandler cgi-script

After another change in that conf file to change DefaultInitEnv to SetEnv 
(using DefaultInitEnv threw errors).  After that, I was able to start the 
Apache web server and was able go to the default page.  I noticed that the page 
indicated that there was only 1 osgeo4w application installed (phpinfo).

The instructions then indicated that the following GetCapabilities call should 
work:

http://localhost:8090/qgis/qgis_mapserv.fcgi.exe?SERVICE=WMSVERSION=1.3.0REQUEST=GetCapabilities

When I ran this in the browser, it indicated that there was an error.  The 
error log file stated:

Premature end of script headers: qgis_mapserv.fcgi.exe

This made me think that there was some mismatch between changing the conf file 
to use cgi rather than fcgi.  There is no qgis_mapserv.cgi.exe, however.  
Not sure what I am missing here.  Both sets of instructions were followed and 
they both indicate it should be working.  Does anyone know what I may be 
missing?

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


Re: [Qgis-user] Problems loading/accessing QGIS Server.... what am I missing?

2014-01-15 Thread Peter Len
So, this was fixed by copying all of the .dll libraries from c:/OSGeo4W/bin to 
c:/OSGeo4W/apps/qgis/bin.  Not sure why none of the references I used indicated 
this, so I am not fully comfortable that it is truly working.  I have been able 
to load a QGIS Desktop project served up by QGIS Server to both ArcMap and QGIS 
so at least that is a start.   


-Original Message-
From: Peter Len petera...@earthlink.net
Sent: Jan 15, 2014 1:13 PM
To: qgis-user@lists.osgeo.org
Subject: [Qgis-user] Problems loading/accessing QGIS Server what am I  
missing?

I am using QGIS and wanted to install the QGIS Server on a Windows 7 box.  I 
was looking at the following pages for how to do an install on Windows 7:

http://hub.qgis.org/projects/quantum-gis/wiki/QGIS_Server_Tutorial
http://anitagraser.com/2012/04/06/qgis-server-on-windows7-step-by-step/

I got the installer from http://download.osgeo.org/osgeo4w/osgeo4w-setup.exe.  
When I ran the install, I did an advanced installation and selected to install 
the Apache Webserver and the QGIS Server.  The instructions went on to say 
that for Windows installs you must change FastCGI to just the CGI in the 
httpd_qgis.conf file. So now the httpd_qgis.conf references:

LoadModule cgi_module modules/mod_cgi.so
SetHandler cgi-script

After another change in that conf file to change DefaultInitEnv to SetEnv 
(using DefaultInitEnv threw errors).  After that, I was able to start the 
Apache web server and was able go to the default page.  I noticed that the 
page indicated that there was only 1 osgeo4w application installed (phpinfo).

The instructions then indicated that the following GetCapabilities call should 
work:

http://localhost:8090/qgis/qgis_mapserv.fcgi.exe?SERVICE=WMSVERSION=1.3.0REQUEST=GetCapabilities

When I ran this in the browser, it indicated that there was an error.  The 
error log file stated:

Premature end of script headers: qgis_mapserv.fcgi.exe

This made me think that there was some mismatch between changing the conf file 
to use cgi rather than fcgi.  There is no qgis_mapserv.cgi.exe, however.  
Not sure what I am missing here.  Both sets of instructions were followed and 
they both indicate it should be working.  Does anyone know what I may be 
missing?

Thanks - Peter
___
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


[Qgis-user] Is this list also used for QGIS Server questions?

2014-01-14 Thread Peter Len
I am looking at QGIS Server and came across a question but cannot find a 
forum/list serv to post questions to.  Does this forum also deal with QGIS 
Server questions or is there another area that I could not find?

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


[Qgis-user] Identify Features popup and viewing feature metadata question

2014-01-13 Thread Peter Len
I am using QGIS v2.0.1 and am also using PostgreSQL/PostGIS as well as 
GeoServer.  In my PostgreSQL, I have a feature table that contains an ID, 
title, and point geometry.  I have published the table as a WMS/WFS via 
GeoServer.  In QGIS, I added a layer to the feature table with a direct 
connection through the Add PostGIS Layer and I also added another layer to 
the feature table through the AddWFS Layer (which goes through GeoServer).  
When I click on the Identify Features icon and click on a feature that is on 
my PostGIS direct connection layer, I can see the ID and Title for that feature 
in the popup window.  If however, I click on the same feature but is in the WFS 
layer, I don't get that other metadata. I only see the coordinates for the 
feature.  

I am new to QGIS and these types of geospatial tools so I am not sure what the 
difference is.  Am I not seeing the other metadata fields when working with the 
WFS via GeoServer because you don't get the other field data with that service? 
 or is it an indicated that I am not properly registering or accessing the 
layer over WFS? or ???

Any thoughts would be greatly appreciated - Peter 
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] Where can I find a WMS gloabl map??

2014-01-05 Thread Peter Len
I am using QGIS 2.0.1 and am looking for a URL for a WMS server that will serve 
up a global map of any kind.  I thought this would b easy to find but am 
running into a wall on this.  No sure what I am missing.  Can anyone give me a 
WMS server URL that has a world map of some sort?

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