Re: [Qgis-developer] Relative paths in mapserver

2013-06-20 Thread Paolo Cavallini
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Il 20/06/2013 07:56, Marco Lechner - FOSSGIS e.V. ha scritto: if you want to shorten URLs you also can pass the request through a shell script (or whatever script executable by apache and called instead og qgis_mapserv.fcgi) and change the

Re: [Qgis-developer] Relative paths in mapserver

2013-06-20 Thread Andreas Neumann
I agree - I don't see the use case for relative project files. In production environment you will use Apache rewriting and for dev-purposes it doesn't matter much if the URL is a bit longer. Plus, as Alex said - relative to what? It is not obvious. Andreas On Wed, 19 Jun 2013 22:50:36 -0700,

Re: [Qgis-developer] Relative paths in mapserver

2013-06-20 Thread Marco Lechner - FOSSGIS e.V.
Hi Paolo, you can even set a bunch of environment variables e.g. export SHAPE_ENCODING= export LANG=en_US.UTF-8 export LD_LIBRARY_PATH=/home/user/apps/qgis-master/lib exec /home/user/apps/qgis-master/bin/qgis_mapserv.fcgi for testing a freshly compiled master One question I'm not sure about is

Re: [Qgis-developer] Relative paths in mapserver

2013-06-20 Thread Marco Hugentobler
One question I'm not sure about is if wrapping the fcgi through a shell script decreases performance (by bypassing fcgi advantages). May be @Marco_Hugentobler (who knows more about fcgi and performance) can say word on this. Invoking the server with script restarts the qgis_mapserv.fcgi

Re: [Qgis-developer] Relative paths in mapserver

2013-06-20 Thread aperi2007
Hi, in mapserver is possible to define more environment variables and rfer to each of they for each of projects called. I guess this is a good and flexible approach. I don't know but perhaps is possible also in qgis-server. Regards, Andrea. On 20/06/2013 07:50, Alex Mandel wrote: On

Re: [Qgis-developer] Relative paths in mapserver

2013-06-19 Thread rldhont
Hi Paolo, There was a bug opened about this problem : Bug #8027: qgis-server don't understand correctly the relative path in a spatialite db http://hub.qgis.org/issues/8027 This bug has been closed because he was not enough generic. You can reopen this one or open a new one. René-Luc D'Hont

Re: [Qgis-developer] Relative paths in mapserver

2013-06-19 Thread Marco Hugentobler
There was a bug opened about this problem : Bug #8027: qgis-server don't understand correctly the relative path in a spatialite db This is a different thing. Relative pathes _within_ the project should be considered if project path setting is 'relative pathes'. (I remember that was fixed

Re: [Qgis-developer] Relative paths in mapserver

2013-06-19 Thread Paolo Cavallini
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Il 19/06/2013 22:35, Marco Hugentobler ha scritto: Relative pathes _to_ the project file are currently not supported (though it is easy to resolve the relative pathes). What is your use-case? Do you have several different server instances on

Re: [Qgis-developer] Relative paths in mapserver

2013-06-19 Thread Bernhard Ströbl
Hi Paolo, in this case you might want to use Apache's URL rewriting as documented e.g. for QWC [1] (section 5). Bernhard [1] https://github.com/qgis/qgis-web-client/blob/master/README Am 20.06.2013 07:09, schrieb Paolo Cavallini: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Il 19/06/2013

Re: [Qgis-developer] Relative paths in mapserver

2013-06-19 Thread Alex Mandel
Shorter urls are easy with Apache using Alias (This is the same way recommended for Mapserver too) and symlinks. symlink your qgs documents into /maps then add and apache alias Alias /maps /cgi-bin/qgis_mapserv.fcgi Now urls would be http://server.com/maps?map=/maps/test.qgs etc... Anyone

Re: [Qgis-developer] Relative paths in mapserver

2013-06-19 Thread Paolo Cavallini
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Il 20/06/2013 07:31, Alex Mandel ha scritto: Shorter urls are easy with Apache using Alias (This is the same way recommended for Mapserver too) and symlinks. Thanks for the replies. Yes, I was aware of these solutions, I was kind of assuming it

Re: [Qgis-developer] Relative paths in mapserver

2013-06-19 Thread Alex Mandel
On 06/19/2013 10:48 PM, Paolo Cavallini wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Il 20/06/2013 07:31, Alex Mandel ha scritto: Shorter urls are easy with Apache using Alias (This is the same way recommended for Mapserver too) and symlinks. Thanks for the replies. Yes, I was aware

Re: [Qgis-developer] Relative paths in mapserver

2013-06-19 Thread Marco Lechner - FOSSGIS e.V.
Hi Paolo, if you want to shorten URLs you also can pass the request through a shell script (or whatever script executable by apache and called instead og qgis_mapserv.fcgi) and change the parameters. Something similar to this file foo.cgi: code #!/bin/bash export

[Qgis-developer] Relative paths in mapserver

2013-06-18 Thread Paolo Cavallini
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all. I'm finding problems in using relative paths in qgis mapserver. The following request works: