[Qgis-developer] Relative paths in mapserver

Marco Lechner - FOSSGIS e.V. marco.lechner at fossgis.de
Thu Jun 20 00:35:32 PDT 2013


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 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.

Marco

Am 20.06.2013 08:35, schrieb Paolo Cavallini:
> 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 parameters. Something similar to this file "foo.cgi":
>
> > <code>
> > #!/bin/bash
> > export QUERY_STRING=$QUERY_STRING'&map=/absolute/path/to/my/project.qgs'
> > exec /usr/lib/cgi-bin/qgis_mapserv.fcgi
> > </code>
>
> Interesting hack, thanks.
> All the best.
>

-- 
+++++++++++++++++++++++++++++++++
FOSSGIS 2013, Die Konferenz für Open Source GIS mit OpenData und
OpenStreetMap erstmals in der Schweiz!
12.-14. Juni, HSR, Rapperswil, http://www.fossgis.de/konferenz/2013/
+++++++++++++++++++++++++++++++++
FOSSGIS e.V.

die unabhängige Hilfe bei freier GIS-Software und freien Geodaten
http://www.fossgis.de
+++++++++++++++++++++++++++++++++




More information about the Qgis-developer mailing list