[Qgis-user] Base directory for images for QGIS-server
Andreas Neumann
a.neumann at carto.net
Fri Aug 14 05:14:56 PDT 2015
Hi Tom,
Do you mean images embedded in a print composer? If yes, just copy them
along with the project file. This should work. Place them relative to
the .qgs file (e.g. in the same folder as the .qgs or with an additional
folder hierarchy).
Just make sure that the relative paths are the same on the machine where
you author the project and on the server.
That works fine for me.
If you mean the SVG files for map symbols in the symbology - I just copy
those files to the default folder where the server is looking for the
SVG files anyway.
Andreas
On 14.08.2015 13:34, Tom Palan wrote:
> hi,
>
> I successfully setup the QGIS-server & QGIS-web-client, and I am now trying to get printouts working. Everything works so far, except the path where QGIS-server is looking for images files is /usr/lib/cgi-bin (the work directory).
> I do not want to specify absolute paths in the print composer, and writing to the /usr/lib/cgi-bin directory is also not a good solution. Is there an environment variable I can set that is parsed by QGIS-server?
>
> thanks a lot
More information about the Qgis-user
mailing list