Hi Andreas.
I have just met with some success for the first time and document here
what I found, for any others who may encounter the same.
As I described previously, I used the URL from the QGIS Server tutorial
page which is
http://localhost/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities
This returns an error, Premature end of script headers.
You corrected me with the following:
http://localhost/cgi-bin/qgis_mapserv.fcgi?map=/path/to/your/qgis-projects/project.qgs&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities
This now returns me an XML document that appears to describe my test
map. Huzzah!
I'm now ready to start learning something more about GIS! Thank you for
your help!
Bo
On 2/3/2013 11:26 AM, Andreas Neumann wrote:
Hi,
Here are the two resources I reccommend:
http://hub.qgis.org/projects/quantum-gis/wiki/QGIS_Server_Tutorial
for the server
and
https://github.com/qgis/qgis-web-client
the README part
for the installation of the client.
In addition, please review the steps I outlined in my last email, esp.
the part about using GetCapabilities vs. GetProjectSettings.
I would first start testing QGIS server, as I said, first manually,
and then with QGIS desktop as a client.
In this request you mention below:
http://localhost/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities
you are missing the "map" parameter
e.g.
http://localhost/cgi-bin/qgis_mapserv.fcgi?map=/path/to/your/qgis-projects/project.qgs&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities
If your .qgs project file would reside at
/path/to/your/qgis-projects/project.qgs
Hope this helps as a start,
Andreas
On 2/3/13 7:15 PM, Bo Gusman wrote:
Hi Andreas. Thanks for your reply. I'll answer your questions as best
as I can.
First of all, I've relied heavily on Google as it is most always true
that someone has the same problems as I do. This hasn't quite worked
out this time, though.
> Can you tell us what documentation you worked with?
Installation was based on the following:
http://hub.qgis.org/projects/quantum-gis/wiki/Download#21-Debian
As I mentioned, I tried installing on Debian (actually TurnkeyLinux a
Debian clone that I use quite extensively in other contexts). After
configuring the appropriate repositories, the software itself
installed without error, but the following threw a "Premature end of
script headers" error:
http://localhost/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities
I would expect that s/w installed from the repos would "just work".
Sadly, this most basic test didn't.
I decided to try an install on CentOS 6 as I'm most familiar with
that (more years of tearing my hair out, as it were.) Once again, the
install worked fine from the repos (using the same websites) and this
time GetCapabilities returned the following
"Configuration file problem"
as part of an XML payload.
Great, I thought, all I have to do is figure out where the
configuration file was located and start digging through that to see
what's going on. Curiously, I can't find a config file on my system
nor any documentation about it.
I do understand that the rich variety of configurations of systems
makes it hard (well, impossible) to document all possible cases, but
I would expect that a default installation of QGIS on a default
installation of any of the supported O/S's would just work.
Late last night I found another post by "underdark" -
http://underdark.wordpress.com/2012/03/30/qgis-server-on-ubuntu-step-by-step/
- that I'm about to try. Maybe third time will be the charm! :)
I'll take a look at your other numbered items to see if I can make
sense out of them.
Thanks again.
Bo
_______________________________________________
Qgis-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-user