QGIS Issue Tracking: Issueshttps://issues.qgis.org/https://issues.qgis.org/favicon.ico2019-03-04T08:02:12ZQGIS Issue Tracking
Redmine QGIS Application - Bug report #21464 (Reopened): option --profiles-path when launching QGIS and l...https://issues.qgis.org/issues/214642019-03-04T08:02:12ZAlain FERRATON
<p>I use the --profiles-path option when launching QGIS.</p>
<p>If you do not check the 'override system locale' settings option,<br />loading any plugin implies the following error:</p>
<p>------------<br />Impossible de charger l'extension 'AcATaMa' provoque une erreur lors de l'appel à sa méthode classFactory()</p>
<p>TypeError: 'QVariant' object is not subscriptable <br />Traceback (most recent call last):<br /> File "C:/PROGRA~1/QGIS3~1.4J/apps/qgis-ltr/./python\qgis\utils.py", line 335, in startPlugin<br /> plugins[packageName] = package.classFactory(iface)<br /> File "C:\0_test\profiles\default/python/plugins\AcATaMa\__init__.py", line 33, in classFactory<br /> return AcATaMa(iface)<br /> File "C:\0_test\profiles\default/python/plugins\AcATaMa\acatama.py", line 57, in <i>init</i><br /> <strong>locale = QSettings().value('locale/userLocale')[0:2]</strong><br />TypeError: 'QVariant' object is not subscriptable<br />----------------</p>
<p>if you check the option and restart QGIS the error no longer occurs.</p>
<p>This is probably a storage problem of the default locale in the QGIS3.ini file</p> QGIS Application - Bug report #21072 (Reopened): Readability issues dark mode Machttps://issues.qgis.org/issues/210722019-01-22T15:50:48ZLeon van der Meulenleonvandermeulen@gmail.com
<p>On several places the readability could be improved. Mostly text labels.</p>
<p>Screenshots: [[<a class="external" href="https://github.com/lutraconsulting/qgis-mac-packager/issues/54">https://github.com/lutraconsulting/qgis-mac-packager/issues/54</a>]]</p> QGIS Application - Bug report #20872 (Reopened): QGIS 3.5 not loading or saving multi-dimensional...https://issues.qgis.org/issues/208722018-12-23T00:41:19ZCory Albrecht
<p>I have map layers stored in PostgreSQL where a field contains two dimensional arrays of values.</p>
<pre>
Alternate History=# select name,full_name,alternate_name from "Balance of Power"."timeline-countries" where full_name is not null and alternate_name is not null;
name | full_name | alternate_name
-----------------+----------------------------------------------------------------------------------------+----------------------------------------------------------------------
New Spain | {{en,"Viceroyalty of New Spain"}} | {{es,"Virreinato de la Nueva España"},{es,"Nueva España"}}
Mexico | {{es,"Imperio Mexicano"},{en,"Mexican Empire"}} | {{es,"Imperio Mexicano"}}
Mexico | {{es,"Estados Unidos Mexicanos"},{en,"United Mexican States"}} | {{es,"Estados Unidos Mexicanos"}}
Mexico | {{es,"Estados Unidos Mexicanos"},{en,"United Mexican States"}} | {{es,"Estados Unidos Mexicanos"}}
Alta California | {{es,"República de Alta California"},{en,"Republic of Alta California"}} | {{en,"Upper California"}}
New Spain | {{en,"Viceroyalty of New Spain"}} | {{es,"Virreinato de la Nueva España"},{es,"Nueva España"}}
…
</pre>
<p>In QGIS 2.18.x those arrays appeared in Feature Attributes dialog in the PostgreSQL text format for specifying arrays, using curly braces as seen in the psql output fragment above, and you could add to the arrays by entering new items in that format.</p>
<p>But in 3.5 that is no longer the case. Instead, only a bit of the text is shown in the text widget of the dialog.</p>
<p><img src="https://i.ibb.co/FxC1jkf/image.png" alt="" /></p>
<p>Further, when you try to update that field with as value like</p>
<pre>
{{en,"Cape Colony"}}
</pre>
<p>it gets saved in the database as</p>
<pre>
{"{{en,\"Cape Colony\"}}"}
</pre> QGIS Application - Bug report #20601 (Reopened): bug: Raster calculator produces empty results la...https://issues.qgis.org/issues/206012018-11-23T08:35:59ZAlister Hood
<p>Right click on a layer in the QGIS "Layers" panel, and rename it.<br />Try to use it in the raster calculator (i.e. the one listed under QGIS raster analysis in processing). It will not work, but there will be no indication there has been an error (you will just get an empty result layer).<br />This is bad, because it appears to run successfully, but gives the wrong results.</p>
<p>Maybe this is related to the limitation in the implementation that prevents the raster calculator from listing and using more than one layer with the same name.</p> QGIS Application - Bug report #20313 (Reopened): Python deprecation warning: invalid escape sequencehttps://issues.qgis.org/issues/203132018-11-01T12:48:15ZAndrea Giudiceandreaandreaerdna@libero.it
<p>QGIS 3.4.0 standalone installer on W7 64 bit with a fresh new profile</p>
<p>Python warning<br /><pre>
WARNING warning:C:\PROGRA~1\QGIS3~1.4\apps\Python37\lib\site-packages\requests\status_codes.py:18: DeprecationWarning: invalid escape sequence \o
"""
traceback: File "", line 1, in
File "C:/PROGRA~1/QGIS3~1.4/apps/qgis/./python\qgis\utils.py", line 335, in startPlugin
plugins[packageName] = package.classFactory(iface)
File "C:/PROGRA~1/QGIS3~1.4/apps/qgis/./python/plugins\MetaSearch\__init__.py", line 29, in classFactory
from MetaSearch.plugin import MetaSearchPlugin
File "C:/PROGRA~1/QGIS3~1.4/apps/qgis/./python\qgis\utils.py", line 672, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 677, in _load_unlocked
File "", line 728, in exec_module
File "", line 219, in _call_with_frames_removed
File "C:/PROGRA~1/QGIS3~1.4/apps/qgis/./python/plugins\MetaSearch\plugin.py", line 34, in
from MetaSearch.dialogs.maindialog import MetaSearchDialog
File "C:/PROGRA~1/QGIS3~1.4/apps/qgis/./python\qgis\utils.py", line 672, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 677, in _load_unlocked
File "", line 728, in exec_module
File "", line 219, in _call_with_frames_removed
File "C:/PROGRA~1/QGIS3~1.4/apps/qgis/./python/plugins\MetaSearch\dialogs\maindialog.py", line 50, in
from owslib.csw import CatalogueServiceWeb # spellok
File "C:/PROGRA~1/QGIS3~1.4/apps/qgis/./python\qgis\utils.py", line 672, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 677, in _load_unlocked
File "", line 728, in exec_module
File "", line 219, in _call_with_frames_removed
File "C:\PROGRA~1\QGIS3~1.4\apps\Python37\lib\site-packages\owslib\csw.py", line 27, in
from owslib.util import OrderedDict
File "C:/PROGRA~1/QGIS3~1.4/apps/qgis/./python\qgis\utils.py", line 672, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 677, in _load_unlocked
File "", line 728, in exec_module
File "", line 219, in _call_with_frames_removed
File "C:\PROGRA~1\QGIS3~1.4\apps\Python37\lib\site-packages\owslib\util.py", line 32, in
import requests
File "C:/PROGRA~1/QGIS3~1.4/apps/qgis/./python\qgis\utils.py", line 672, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 677, in _load_unlocked
File "", line 728, in exec_module
File "", line 219, in _call_with_frames_removed
File "C:\PROGRA~1\QGIS3~1.4\apps\Python37\lib\site-packages\requests\__init__.py", line 114, in
from .models import Request, Response, PreparedRequest
File "C:/PROGRA~1/QGIS3~1.4/apps/qgis/./python\qgis\utils.py", line 672, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 677, in _load_unlocked
File "", line 728, in exec_module
File "", line 219, in _call_with_frames_removed
File "C:\PROGRA~1\QGIS3~1.4\apps\Python37\lib\site-packages\requests\models.py", line 43, in
from .status_codes import codes
File "C:/PROGRA~1/QGIS3~1.4/apps/qgis/./python\qgis\utils.py", line 672, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 677, in _load_unlocked
File "", line 724, in exec_module
File "", line 860, in get_code
File "", line 791, in source_to_code
File "", line 219, in _call_with_frames_removed
</pre></p> QGIS Application - Bug report #20283 (Reopened): Crash when exiting program [proj_lpz_dist]https://issues.qgis.org/issues/202832018-10-30T19:38:53ZJerry Brandbrandj@gmail.com
<a name="User-Feedback"></a>
<h2 >User Feedback<a href="#User-Feedback" class="wiki-anchor">¶</a></h2>
<p>Just closing the program</p>
<a name="Report-Details"></a>
<h2 >Report Details<a href="#Report-Details" class="wiki-anchor">¶</a></h2>
<p><strong>Crash ID</strong>: a3eb9e008e3031d98e71767c90264528b8c82c02</p>
<p><strong>Stack Trace</strong><br /><pre>
proj_lpz_dist :
proj_lpz_dist :
QgsCoordinateTransform::transformPolygon :
QgsCoordinateTransform::transformPolygon :
QgsCoordinateTransform::~QgsCoordinateTransform :
QgsFirstRunDialog::trUtf8 :
QObjectPrivate::deleteChildren :
QWidget::~QWidget :
CPLStringList::operator char const * __ptr64 const * __ptr64 :
main :
BaseThreadInitThunk :
RtlUserThreadStart :
</pre></p>
<p><strong>QGIS Info</strong><br />QGIS Version: 3.4.0-Madeira<br />QGIS code revision: <a class="changeset" href="https://issues.qgis.org/projects/qgis/repository/revisions/4a4b62ed19d2333b1f3a9e72bf77119048e3c9c0" title="Release of 3.4 (Madeira)">4a4b62ed19</a><br />Compiled against Qt: 5.11.2<br />Running against Qt: 5.11.2<br />Compiled against GDAL: 2.3.2<br />Running against GDAL: 2.3.2</p>
<p><strong>System Info</strong><br />CPU Type: x86_64<br />Kernel Type: winnt<br />Kernel Version: 10.0.17134</p> QGIS Application - Feature request #19832 (Reopened): Delete layers/files rather than removehttps://issues.qgis.org/issues/198322018-09-12T15:12:25Zna na
<p>There are some stackexchange questions about this with some code.</p>
<p>Rather than right clicking and removing layers, can we have the option to Delete them, so you don't have multiple duplicate/not needed files around.</p>
<p>I think this is more useful for commercial users, as it can be hard to determine what is still useful or junk data after the user who created the layers has finished his work.</p>
<p>Stackexchange tickets<br />[[<a class="external" href="https://gis.stackexchange.com/questions/190283/deleting-shapefiles-using-qgis">https://gis.stackexchange.com/questions/190283/deleting-shapefiles-using-qgis</a>]]<br />[[<a class="external" href="https://gis.stackexchange.com/questions/215673/deleting-shapefile-with-qgis?noredirect=1&lq=1">https://gis.stackexchange.com/questions/215673/deleting-shapefile-with-qgis?noredirect=1&lq=1</a>]]</p>
<p>The stackexchange tickets list how to delete shapefile but the scripts may need be converted in QGIS 3.0 as there has been an API break ect..</p> QGIS Application - Bug report #19742 (Reopened): accentued caracters make problem to load python ...https://issues.qgis.org/issues/197422018-08-31T13:27:39ZJérôme Seigneuretjerome.seigneuret@gmail.com
<p>Hi,</p>
<a name="Error"></a>
<h2 >Error<a href="#Error" class="wiki-anchor">¶</a></h2>
<p>2018-08-31T15:05:56 WARNING L'expression de l'utilisateur base_water_function n'est pas valide<br /> Traceback (most recent call last):<br /> File "C:/OSGEO4~1/apps/qgis/./python\qgis\user.py", line 48, in load_user_expressions<br /> <i>import</i>("expressions.{0}".format(name), locals(), globals())<br /> File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 674, in _import<br /> mod = _builtin_import(name, globals, locals, fromlist, level)<br /> File "C:/Users/user1/AppData/Roaming/QGIS/QGIS3\profiles\default/python\expressions\base_water_function.py", line 21<br /> SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0xe9 in position 4: invalid continuation byte</p>
<a name="Context"></a>
<h2 >Context:<a href="#Context" class="wiki-anchor">¶</a></h2>
<p>I make a function in expresion script panel and it is used to set label.</p>
<p>The expression script is:<br /><pre>
# -*- coding: utf-8 -*-
from qgis.core import *
from qgis.gui import *
@qgsfunction(args='auto', group='Custom')
def get_pipe_material_code_fr(v,feature, parent):
"""
return french material name to it corresponding code
"""
if v == "Fonte":
return "F"
elif v == "Pvc":
return "PVC"
elif v == "inconnu":
return "?"
elif v == "Polyéthylène":
return "PE"
else:
return "X"
</pre></p>
<p>In fact i see<br />C:\Users\user1\AppData\Roaming\QGIS\QGIS3\profiles\default\QGIS\QGIS3.ini<br />encoding=UTF-8</p>
<p>there is no information with python but if I have understand, QGIS 3 work with python 3 and default encoding is UTF-8 so I don't understrand</p>
<p>my label call get_pipe_material_code_fr("Material") || (' Ø' ) || "Diameter"</p>
<p>If I go in function panel and click on load, all work fine.</p>
<a name="Software-information"></a>
<h2 >Software information<a href="#Software-information" class="wiki-anchor">¶</a></h2>
<p>Version de QGIS<br />3.2.2-Bonn<br />Révision du code<br />26842169e9<br />Compilé avec Qt<br />5.9.2<br />Utilisant Qt<br />5.9.2<br />Compilé avec GDAL/OGR<br />2.2.4<br />Utilisé avec GDAL/OGR<br />2.2.4<br />Compilé avec GEOS<br />3.6.1-CAPI-1.10.1<br />Utilisé avec GEOS<br />3.6.1-CAPI-1.10.1 r0<br />Version du client PostgreSQL<br />9.2.4<br />Version de SpatiaLite<br />4.3.0<br />Version de QWT<br />6.1.3<br />Version de QScintilla2<br />2.10.1<br />Version de PROJ.4 :<br />493</p> QGIS Application - Bug report #19626 (Reopened): World map incorrectly drawn when using a differe...https://issues.qgis.org/issues/196262018-08-15T07:04:02Z克鲁 黄tone90999@hotmail.com
<p>When I use Natural Earth as data source and want to change projection for the project to customized Robinson, the map breaks apart (see attached file). <br />I use a projection as follows: <br />Proj4: +proj=robin +lon_0=150dE +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs<br />Hope if it's not a bug. But if it is, I'd like to know if there's a workaround.</p> QGIS Application - Bug report #19575 (Reopened): QWebPage: No such file or directoryhttps://issues.qgis.org/issues/195752018-08-09T10:41:49Znicolas zzzzswiss_knight@hotmail.com
<p>I encountered this error during QGIS compilation on Ubuntu Xenial (4.15.0-29-generic x86_64 GNU/Linux):</p>
<pre>
In file included from /opt/QGIS/src/core/annotations/qgshtmlannotation.cpp:26:0:
/opt/QGIS/src/core/qgswebpage.h:26:20: fatal error: QWebPage: No such file or directory
compilation terminated.
</pre> QGIS Application - Feature request #19106 (Reopened): snapping on hover when we want to rotate fe...https://issues.qgis.org/issues/191062018-06-04T12:22:40ZLéo Chevrierchevrierleo@gmail.com
<p>Hello,<br />One of usefull evolution for the rotate feature's function in qgis would be to snapp on hover on the anchor point that we want.</p>
<p>On my exemple : I want to rotate a segment with the anchor point on the end of the segment.</p>
<p>So I have to Use <em>Rotate Feature(s) to rotate one or multiple features in the map canvas. Press the rotateFeature Rotate Feature(s) icon and then click on the feature to rotate. Either click on the map to place the rotated feature or enter an angle in the user input widget. <br />If you enable the map tool with feature(s) selected, its (their) centroid appears and will be the rotation anchor point.</em> <strong>If you want to move the anchor point, hold the Ctrl button and click on the map to place it.</strong> (in this manipulation, i can't snapp my mouse pointers on the end of my segment, I have to manually zoom in on it and approximatively clickin on it)</p>
<p>What do you think about this evolution ?</p>
<p>Best regards</p>
<p>Léo</p> QGIS Application - Bug report #18485 (Reopened): Recent Projects startup screen truncates filenam...https://issues.qgis.org/issues/184852018-03-20T03:27:27ZPatrick Dunfordenzedrailmaps@gmail.com
<p>If a project filename contains periods, the filename is truncated at the first period when displayed in the Recent Projects startup screen.</p>
<p>The code should truncate the filename at the last period, not the first one.</p> QGIS Application - Bug report #14900 (Reopened): Styling panel: Clicking the Apply button adds a ...https://issues.qgis.org/issues/149002016-05-26T04:21:56ZHarrissou Santanna
<p>Open the map styling panel of a layer, History Tab<br />Click Apply. A new line is added although nothing has been done!</p> QGIS Application - Feature request #4069 (Reopened): Enhancement: ability to search for a plugin ...https://issues.qgis.org/issues/40692011-07-10T19:12:15ZAlister Hood
<p><strong>Problem description</strong><br />Quoting from an old ticket: "With the explosion of QGIS plugins, people will eventually have so many plugins that it would get hard to find them in the Plugin menu or Plugin toolbar."</p>
<p>"eventually" is now!</p>
<p>This is particularly a problem when a plugin is not grouped into one of the categories (e.g. "analysis" or "vector"), and its name is different from the label of its menu entry e.g. "shaded relief" vs "DEM relief shader".</p>
<p>In the plugin manager and the plugin installer there is a "filter", which allows the user to search for a plugin to install/uninstall or enable/disable it. It would be good if there was also somewhere where the user could search for a plugin to <em>run</em> it.</p>
<strong>Possible Solutions</strong>
<ol>
<li>Add to the plugin manager the ability to start a plugin.</li>
<li>Implement something like <a class="issue tracker-2 status-1 priority-3 priority-" href="https://issues.qgis.org/issues/1734" title="Use a dockable tabbed window for plugins (Open)">#1734</a>: "Use a dockable tabbed window for plugins", and include a filter. Personally I don't like the idea of an array of buttons (a list like the plugin manager would be better), and rather than category tabs it may be better to have a single list of plugins, with the ability to filter by category.</li>
<li>Combine 1 and 2, i.e. modify the plugin manager to be a dockable modeless window with the ability to launch plugins.</li>
<li>?</li>
</ol>
<p>The need for this would probably be reduced significantly if <a class="issue tracker-2 status-5 priority-3 priority- closed" href="https://issues.qgis.org/issues/1602" title="Superfluous entries in the Plugin menu (Closed)">#1602</a>: "Grouping plugins in the menu" was implemented, i.e. if all plugin developers put their plugins into category submenus.</p> QGIS Application - Bug report #1893 (Reopened): opening data tables widens the main windowhttps://issues.qgis.org/issues/18932009-08-25T05:20:54ZPaolo Cavallinicavallini@faunalia.it
<p>When opening >=3 tables while in docked mode, the main window becomes very wide, instead of shrinking the space allocated to each table</p>