<div dir="ltr">Hello.<div>I've been asked to support a customer of us to deploy a map where a custom CRS has been defined.</div><div>After various tests I've identified almost all the issues that arise when using a user defined CRS. </div>

<div><br></div><div>*QGIS MAPSERVER*<br></div><div>Given that user defined CRS (>100000) are automatically written and read by QGIS to the user qgis.db database, it would add the possibility for QGIS MS to use a custom CRS DB. I've been able to do it adding an env variable (QGIS_CUSTOMCONFIG), similar to the custom config variable to QGIS startup:</div>

<div><br></div><div>QString configPath = getenv( "QGIS_CONFIGPATH" );<br>QgsApplication qgsapp( argc, argv, getenv( "DISPLAY" ),configPath );<br><br></div><div>This solves the problem of picking the USER:XXXXXX  CRS, but something else needs to be done (I'm debugging to catch the point).<br>
</div><div>Before going on I would like to ask (Marco?) if it's something you would incorporate in QGIS MS, and if you already know what should be done how much would it take to do it.<br><br></div><div>*QWC*<br></div>
<div>The "EPSG" string should be set in a variable. In this way a different authid could be set, e.g. "USER". Otherwise the requests to the server will always be with an EPSG CRS.<br><br></div><div>What do you think about these improvements? Do they fit in both the softwares?<br>
</div><div>I think yes. This way planetary maps could be deployed too ;)<br><br></div><div>Have a good day,<br></div><div>Giovanni<br></div><div><div><div><br></div>-- <br><div dir="ltr">Giovanni Allegri<br><a href="http://about.me/giovanniallegri" target="_blank">http://about.me/giovanniallegri</a><div>
Twitter: <a href="https://twitter.com/_giohappy_" target="_blank">https://twitter.com/_giohappy_</a></div>
<div>blog: <a href="http://blog.spaziogis.it" target="_blank">http://blog.spaziogis.it</a><br>GEO+ geomatica in Italia <a href="http://bit.ly/GEOplus" target="_blank">http://bit.ly/GEOplus</a></div></div>
</div></div></div>