Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configuring QGIS server to work with multiple maps #17

Open
cccs-ip opened this issue Dec 20, 2014 · 4 comments
Open

configuring QGIS server to work with multiple maps #17

cccs-ip opened this issue Dec 20, 2014 · 4 comments
Assignees
Labels

Comments

@cccs-ip
Copy link
Member

cccs-ip commented Dec 20, 2014

I am closing Issue #5 because we have the server installed. Opening a new issue to address our concern about publishing multiple maps on the same server instance.

@cccs-ip
Copy link
Member Author

cccs-ip commented Dec 20, 2014

I tried this approach locally, and it seems to work:

http://anitagraser.com/2012/03/30/qgis-server-on-ubuntu-step-by-step/

The key to anita's approach is to ln -s the executables:

It’s time to add a QGIS project to our server. To do that, we move to the QGIS Server folder

cd /usr/lib/cgi-bin

where you should find qgis_mapserv.fcgi and wms_metadata.xml.
I’ve decided to have one folder for each project file. My first project is “vienna”.

sudo mkdir vienna
cd vienna

qgis_mapserv.fcgi and wms_metadata.xml can now be linked into this new folder

sudo ln -s ../qgis_mapserv.fcgi .
sudo ln -s ../wms_metadata.xml .

The only thing that’s missing anymore is a QGIS project file. It can be copied or linked into the folder. After restarting Apache, we should be good to go.

I was able to connect via the localhost fcgi extension to the map. My only issue is that I keep getting an error saying that my SERVICE parameter is not specified (and it is mandatory). I enable the OWL settings in properties but no luck.

I am not sure why we're having so many problems to get this working on our site....

@cccs-ip
Copy link
Member Author

cccs-ip commented Dec 20, 2014

I see that fix is essentially the same as the one Tim posted in his article, which Paul suggests won't work:

I need help understanding how I can get it to serve multiple qgs projects without needing a separate server running for each one (I looked at Tim's 2012 blog entry but it does not seem to help me because the server wont serve the other files even if I were prepared to clone the client for each project).

The exact reason for this is unclear.

There seems to be necessary parameters embedded in the XML to serve a map. Could this be why the demos are working and our maps are not? I have been messing with the OWL project settings in qgis, but to no avail.

@cccs-ip
Copy link
Member Author

cccs-ip commented Dec 20, 2014

as an alternative (still based on QGIS, but supposedly neatly packaged for web presentation):

OpenGeo
http://suite.opengeo.org/docs/latest/intro/installation/ubuntu/install.html#intro-installation-ubuntu-install

@jakimowb
Copy link

Having the same problem I found out that the MAP parameter allows to specify the QGIS Project.

Like MAP=/owsprojects/demo.qgs in:

http://ows.geo.hu-berlin.de/cgi-bin/qgis_mapserv.fcgi?MAP=/owsprojects/demo.qgs&SERVICE=WFS&REQUEST=GetCapabilities

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants