<div dir="ltr"><span style="font-size:12.8px">Hello,</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">first post of mine, am a software support engineer without much QGIS knowhow but "figure-it-out" drive. Here I have:</div><div style="font-size:12.8px"><br><div><br></div><div>1) some kind of a bug report</div><div>2) request for guidance</div><div><br></div><div><br></div><div>ad 1)</div><div><br></div><div>I have installed (and updated) the nightly build on a clean Ubuntu 16.04 (container with systemd-nspawn) with these apt sources:</div><div><div>$  cat /etc/apt/sources.list.d/qgis.<wbr>list</div><div>deb <a href="http://qgis.org/ubuntugis-nightly" target="_blank">http://qgis.org/ubuntugis-<wbr>nightly</a> xenial main</div><div>deb-src <a href="http://qgis.org/ubuntugis-nightly" target="_blank">http://qgis.org/ubuntugis-<wbr>nightly</a> xenial main</div><div>deb <a href="http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu" target="_blank">http://ppa.launchpad.net/<wbr>ubuntugis/ubuntugis-unstable/<wbr>ubuntu</a> xenial main<br></div></div><div><br></div><div><br></div><div>I get this debug message for a simple PyQGIS script:</div><div>../../src/core/<wbr>qgscoordinatereferencesystem.<wbr>cpp: 924: (getRecord) [6ms] user qgis.db not found</div><div><br></div><div>Not being familiar with the QGIS codebase it seems to me that there are two competing settings:</div><div><br></div><div>- qgisSettingsDirPath() gives me '/home/user/.local/share/<wbr>profiles/default'<br></div><div>- but <a href="https://qgis.org/api/qgsapplication_8cpp_source.html#l00127" target="_blank">https://qgis.org/api/<wbr>qgsapplication_8cpp_source.<wbr>html#l00127</a> checks for the environment variable (which is empty on my system) and falls back to which is accorrding to <a href="http://doc.qt.io/qt-5/qstandardpaths.html" target="_blank">http://doc.qt.io/qt-5/<wbr>qstandardpaths.html</a> "~/.local/<wbr>share/<APPNAME>", "/usr/local/share/<APPNAME>", "/usr/share/<APPNAME>"</div><div><br></div><div>Indeed I have a qgis.db in  /home/user/.local/share/QGIS/<wbr>QGIS3/profiles/default and if I create via the GUI "Settings > Profile > New profile" another one it shows up in /home/user/.local/share/<wbr>QGIS/QGIS3/profiles/ .</div><div><br></div><div>This is is clearly different from what qgisSettingsDirPath() returns.</div><div><br></div><div><br></div><div>PyQGIS code to reproduce the debug message "user qgis.db not found":</div><div>In [1]: from qgis.core import *<br></div><div><div>In [2]: crs = QgsCoordinateReferenceSystem()</div><div>In [3]: crs.createFromProj4("+proj=<wbr>ortho +lat_0=20 +lon_0=20 +x_0=0 +y_0=0 +a=6370997 +b=6370997 +units=m +no_defs")</div><div>../../src/core/<wbr>qgscoordinatereferencesystem.<wbr>cpp: 883: (getRecord) [0ms] failed : /resources/srs.db does not exist!</div><div>../../src/core/<wbr>qgscoordinatereferencesystem.<wbr>cpp: 883: (getRecord) [0ms] failed : /resources/srs.db does not exist!</div><div>Out[3]: True</div></div><div><br></div><div><br></div><div><br></div><div>ad 2)</div><div>Not sure if the above warrants a bug report, or if it is a package problem of the xenial ubuntugis-nightly packages. So:</div><div><br></div><div>I am looking for guidance in my quest to contribute to the PyQGIS docs.</div><div>Being new to QGIS (I need maps for a mobile app of mine) I would appreciate if someone experienced could guide me.</div><div><br></div><div>Right now I am</div><div>a) learning PyQGIS</div><div>b) documenting working examples as Python unittest modules in <a href="https://github.com/cprior/sunlightmap/tree/master/application/physical/GIS/qgis3-tests" target="_blank">https://github.com/cprior/<wbr>sunlightmap/tree/master/<wbr>application/physical/GIS/<wbr>qgis3-tests</a></div><div>(whole repo under MIT, so no effort would be "lost")</div><div><br></div><div>Started to poke around on <a href="https://gis.stackexchange.com/users/87254/cprior" target="_blank">https://gis.stackexchange.<wbr>com/users/87254/cprior</a> but I would be glad to have a speedier onboarding process than looking at "badges earned"... ;)</div><div><br></div><div>I am willing to spend an hour each weekday for 4-6 weeks and think I could contribute something helpful to the PyQGIS docs.</div><div><br></div><div><br></div><div>BR,</div><div>Christian Prior-Mamulyan</div></div></div>