Re: [Qgis-user] [Qgis-server 3.4] Serve project with custom Python expression
Thank you for your help, Unfortunately QGIS_CUSTOM_CONFIG_PATH does not solve the issue, I've the feeling that this variable has been removed since QGIS3, it's not listed in the docs and qgis-server log file does not report it, even if it was set in Apache conf. Moreover, setting QGIS_OPTIONS_PATH to profile folder works crorrectly, I can see in the log that the init file was found and some variable like QGIS_SERVER_PARALLEL_RENDERING have been correctly overridden by the init configuration. Le mer. 27 févr. 2019 à 12:21, Alessandro Pasotti a écrit : > > > On Wed, Feb 27, 2019 at 9:51 AM Dominique Lyszczarz > wrote: > >> Hi, >> >> I'm trying to serve a project that use data-defined properties with an >> expression using a custom Python function. Custom Python functions for >> expression engine are stored in user's profile folder >> (QGIS3/profiles/default/python/expression), so I've tryied to set up FCGI >> environment variable (Apache) as referred in the doc ( >> https://docs.qgis.org/testing/en/docs/user_manual/working_with_ogc/server/config.html) >> : >> >> FcgidInitialEnv QGIS_OPTIONS_PATH >> "/home/user/.local/share/QGIS/QGIS3/profiles/default" >> >> But it does not seems to works, any idea ? >> > > QGIS_OPTIONS_PATH is the path to QGIS3.ini (which contains the user > settings), not the path to the profile folder. > > QGIS_CUSTOM_CONFIG_PATH is what are you probably looking for. > > Hope this helps. > > > >> Thanks in advance >> >> >> ___ >> Qgis-user mailing list >> Qgis-user@lists.osgeo.org >> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user >> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user > > > > -- > Alessandro Pasotti > w3: www.itopen.it > ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] [Qgis-server 3.4] Serve project with custom Python expression
On Wed, Feb 27, 2019 at 9:51 AM Dominique Lyszczarz wrote: > Hi, > > I'm trying to serve a project that use data-defined properties with an > expression using a custom Python function. Custom Python functions for > expression engine are stored in user's profile folder > (QGIS3/profiles/default/python/expression), so I've tryied to set up FCGI > environment variable (Apache) as referred in the doc ( > https://docs.qgis.org/testing/en/docs/user_manual/working_with_ogc/server/config.html) > : > > FcgidInitialEnv QGIS_OPTIONS_PATH > "/home/user/.local/share/QGIS/QGIS3/profiles/default" > > But it does not seems to works, any idea ? > QGIS_OPTIONS_PATH is the path to QGIS3.ini (which contains the user settings), not the path to the profile folder. QGIS_CUSTOM_CONFIG_PATH is what are you probably looking for. Hope this helps. > Thanks in advance > > > ___ > Qgis-user mailing list > Qgis-user@lists.osgeo.org > List info: https://lists.osgeo.org/mailman/listinfo/qgis-user > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user -- Alessandro Pasotti w3: www.itopen.it ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] [Qgis-server 3.4] Serve project with custom Python expression
Hi, I'm trying to serve a project that use data-defined properties with an expression using a custom Python function. Custom Python functions for expression engine are stored in user's profile folder (QGIS3/profiles/default/python/expression), so I've tryied to set up FCGI environment variable (Apache) as referred in the doc ( https://docs.qgis.org/testing/en/docs/user_manual/working_with_ogc/server/config.html) : FcgidInitialEnv QGIS_OPTIONS_PATH "/home/user/.local/share/QGIS/QGIS3/profiles/default" But it does not seems to works, any idea ? Thanks in advance ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user