<div dir="ltr"><div><div>Hello Andrea,<br><br></div>Can't you do that by "chmod" the file?<br><br></div>Y.<br></div><div class="gmail_extra"><br><div class="gmail_quote">2018-01-10 12:28 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><div><div><div><div><div>Hi,<br></div>Usually we use the spatialite db as ordinary datasource for ours mapserver wms.<br><br></div>Now I discovered that the last versions of spatialite always test automatically the version of the DB sqlite and if verify that the db was create using an older spatialite version.<br><br>TRY TO UPDATE the spatialite system tables WHEN the connection was closed.<br><br></div>This probably is a good strategy for an ordinary desktop application.<br></div>But more risk pendent when used on a mpaserver that could have more than one connection open on the same DB sqlite.<br><br></div>To avoid this the standard solution used from the spatialite driver is to check if the DB is open in READ-ONLY mode.<br><br></div>And avoid to write and update the db when it is in read-only mode.<br><br></div>So my trouble now is how the change the usual connection string in the mapfile to say to the OGR driver to open the sqlite/spatialite using the "read-only" mode.</div><br>Is this possible ?<br><br></div>Many thx<span class="HOEnZb"><font color="#888888"><br><br></font></span></div><span class="HOEnZb"><font color="#888888">A.<br><br><div><div><div><div><div><div><div><div><div><div><div><div><div>-- <br><div class="m_-1354545194170353687gmail_signature" data-smartmail="gmail_signature">-----------------<br>Andrea Peri<br>. . . . . . . . . <br>qwerty àèìòù<br>-----------------<br></div>
</div></div></div></div></div></div></div></div></div></div></div><br><br></div></div></font></span></div>
<br>______________________________<wbr>_________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.<wbr>org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/mapserver-<wbr>users</a><br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Training and support manager<br>Camptocamp France SAS<br>Bâtiment le Dauphin - 1er étage<br>18 rue du Lac Saint André<br>73382 Le Bourget-du Lac<br><br>Tel (France) : +33 4 58 48 20 43<br>Tel (Switzerland) : +41 21 619 10 43<br>Mob. : +33 6 18 75 42 21<br><br>email : <a href="mailto:yves.jacolin@camptocamp.com" target="_blank">yves.jacolin@camptocamp.com</a><br><a href="http://www.camptocamp.com" target="_blank">http://www.camptocamp.com</a></div></div></div></div></div></div></div></div></div>
</div>