<div dir="ltr"><div>Hi,</div><div><br></div><div>Some comments about this issue :<br></div><div><br></div><div>* we should add an project option for this too, wich overrides the QGIS setting</div><div>* there is a way to create an option file read by the server, where you can add the options you like. See the doc in [1] <br></div><div><br></div><div>Basically:</div><div><br></div><div>* create a file somewhere in the server, e.g. <br></div><div><br></div><div>/svr/qgis/config/QGIS/QGIS2.ini</div><div><br></div><div>* Add some variables in this file, for example</div><div><pre><code>[svg]
searchPathsForSVG=/srv/data/mysvg|/home/data/other_svg<br><br></code></pre><pre><code>* Set the env variable to tell QGIS Server where to read the config file<br></code><br><code><code>FcgidInitialEnv QGIS_OPTIONS_PATH "/srv/qgis/config/"</code></code></pre></div><div><br></div><div>Regards</div><div>Michaël<br></div><div><br></div><div><font size="1"><font face="trebuchet ms,sans-serif">[1] <a href="https://docs.qgis.org/2.18/it/docs/user_manual/working_with_ogc/server/config.html#environment-variables">https://docs.qgis.org/2.18/it/docs/user_manual/working_with_ogc/server/config.html#environment-variables</a> <br></font></font></div><div><font size="1"><font face="trebuchet ms,sans-serif"><br></font></font></div><div><font size="1"><font face="trebuchet ms,sans-serif"><br></font></font></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-12-29 14:31 GMT+01:00 Andrea Peri <span dir="ltr"><<a href="mailto:aperi2007@gmail.com" target="_blank">aperi2007@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div>Hi,<br></div>I confirm .<br></div>The setting is at application level , not at project level.<br><br></div>I have my desktop set to "ignore setting", but when move to qgis-server it don't use the cpg file.<br><br></div>So now I'm now changing manually all the layers one by one in my project qgis from System to the effective charset of every single shapefile to use them on qgis-server.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div></div><div></div>A.<br><br></font></span></div><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">2017-12-29 13:58 GMT+01:00 Richard Duivenvoorde <span dir="ltr"><<a href="mailto:rdmailings@duif.net" target="_blank">rdmailings@duif.net</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On 29-12-17 13:12, Tobias Wendorff wrote:<br>
> Am Fr, 29.12.2017, 13:02 schrieb Richard Duivenvoorde:<br>
>><br>
>> So the project is leading<br>
><br>
> Then the setting is in the wrong place. In QGIS3, it's an application<br>
> wide setting, not a project setting.<br>
<br>
</span>Hi Tobias,<br>
<br>
Sorry. You are right. I was just echoing my interpretation of Paolo's email.<br>
<br>
It seems a indeed an application setting:<br>
 /qgis/ignoreShapeEncoding<br>
used here:<br>
<br>
<a href="https://github.com/qgis/QGIS/blob/master/src/providers/ogr/qgsogrprovider.cpp#L433" rel="noreferrer" target="_blank">https://github.com/qgis/QGIS/b<wbr>lob/master/src/providers/ogr/q<wbr>gsogrprovider.cpp#L433</a><br>
<br>
In desktop defaulting to true:<br>
<a href="https://github.com/qgis/QGIS/blob/master/src/app/qgsoptions.cpp#L644" rel="noreferrer" target="_blank">https://github.com/qgis/QGIS/b<wbr>lob/master/src/app/qgsoptions.<wbr>cpp#L644</a><br>
<br>
I'm not familiar with how the settings/environment are created for the<br>
server.<br>
<br>
Depending the view on being it a project setting, or a application<br>
setting, it should be, or NOT be in the project file.<br>
BUT if not be in the project file, there is maybe a way (via custom<br>
settings?) to put this kind of stuff in the environment?<br>
<br>
In 3.0 and 2.18 I changed the value to false, but could not find<br>
anything in the project file.<br>
<br>
I think we should try to define this clearly:<br>
- should we define it a project or a application<br>
(?? is one server one application??) setting<br>
- where does the 'settings' come from for a freshly started qgisserver.<br>
(as normally you do not use the same server machine on which you run<br>
desktop)<br>
<br>
Regards,<br>
<br>
Richard Duivenvoorde<br>
<div class="m_7201091095459953726HOEnZb"><div class="m_7201091095459953726h5">______________________________<wbr>_________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailma<wbr>n/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailma<wbr>n/listinfo/qgis-user</a></div></div></blockquote></div><br><br clear="all"><br></div></div><span class="">-- <br><div class="m_7201091095459953726gmail_signature" data-smartmail="gmail_signature">-----------------<br>Andrea Peri<br>. . . . . . . . . <br>qwerty àèìòù<br>-----------------<br></div>
</span></div>
<br>______________________________<wbr>_________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-user</a><br></blockquote></div><br></div>