Re: [QGIS-Developer] 3.36.0
Ah, smart. Thanks very much for the clarification. On Fri, Mar 8, 2024, 3:41 PM Andreas Neumann wrote: > Hi Hugh, > > This is intentional. Every .0 version is called a "release candidate". > This is because we found out that users won't test a new version prior to a > new release (as we initially thought it should be). > > That's why we ship every .0 release of a new version as "release > candidate" - as a warning that users shouldn't use it for critical > projects. It has nothing to do with LT vs regular release. Also regular > releases get that label when shipped as a .0 minor version. > > Greetings, > Andreas > > > On Fri, 8 Mar 2024 at 16:53, Hugh Kelley via QGIS-Developer < > qgis-developer@lists.osgeo.org> wrote: > >> Hi, >> >> just wanted to mention that I installed 3.36.0 this morning and happened >> to noticed on that loading window thing that appears before qgis has fully >> started it is calling itself a "release candidate". It's not the LTR but I >> think it's now officially the point release and not a candidate? >> >> Thanks to everyone contributing, especially to much more important issues >> than something like this! >> >> >> ___ >> QGIS-Developer mailing list >> QGIS-Developer@lists.osgeo.org >> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer >> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer >> > > > -- > > -- > Andreas Neumann > QGIS.ORG board member (treasurer) > ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
[QGIS-Developer] 3.36.0
Hi, just wanted to mention that I installed 3.36.0 this morning and happened to noticed on that loading window thing that appears before qgis has fully started it is calling itself a "release candidate". It's not the LTR but I think it's now officially the point release and not a candidate? Thanks to everyone contributing, especially to much more important issues than something like this! ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [QGIS-Developer] Running unit tests without "make install"
Hi Thomas, generally the easiest way to solve this sort of problem is to use a virtual machine to isolate the install from the rest of your computer. You'll find instructions for doing this with docker in the qgis repository here: https://github.com/qgis/QGIS/tree/master/.docker Happy new year! On Sun, Dec 31, 2023, 3:36 PM Thomas Larsen Wessel via QGIS-Developer < qgis-developer@lists.osgeo.org> wrote: > The docs ( > https://docs.qgis.org/3.28/en/docs/developers_guide/unittesting.html#run-your-tests) > specify: *make && make install && make test*. > > I would rather not run make install, since I have another instance of QGIS > installed via APT, and I worry running make install will somehow make a > mess and leave me without a working instance. > > But is it really necessary to run make install before make run? In fact it > seems more natural to me to test before installing! > > Sincerely > ___ > QGIS-Developer mailing list > QGIS-Developer@lists.osgeo.org > List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer > ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [QGIS-Developer] qgis ubuntu 20.04 dependencies
OK thanks, exactly the general guidance I was looking for. I'll look into upgrading. Is there currently a version that makes things easiest? On Mon, Jun 19, 2023 at 2:34 PM Even Rouault wrote: > Building recent QGIS versions on 20.04 is going to be quite a lot of pain > since you'll need indeed to have a qt 5.15 build, and all the other > auxiliary QT based dependencies build against it. > > I'd suggest you update to 22.04 at least. Or if you don't want to do > development but can live with released versions, try conda-forge builds (cf > https://plugins.qgis.org/planet/tag/conda/) > Le 19/06/2023 à 20:30, Hugh Kelley via QGIS-Developer a écrit : > > Hi all, > > while working on compiling qgis on ubuntu using these instructions [0] , > i've run into an error while running cmake that "QRecursiveMutex" is not > found. > > It looks like that became available in QT 5.14. > > Ubuntu 20.04 installs QT 5.12. During my searches i've seen comments that > imply 5.15 might not be available for 20.04. I'm trying to figure out > whether I should be trying to upgrade Qt, if I have to upgrade Ubuntu, or > if there is some option in the compilation process that can resolve this > for me. > > I've installed Qt 5.15.2 to /opt/ and added it to PATH, but qtdiag still > indicates i'm using 5.12.x > > I thought i'd start by asking here before asking on a Qt general forum in > case there's a qgis specific solution. > > I've also set the cmake 3d option to "no" which got me around the absence > of q qt 3d extras pacakge/file. So maybe there's a similar solution for > this although this version problem seem more essential. > > Thanks for any suggestions! > > > > > [0] https://github.com/qgis/QGIS/blob/master/INSTALL.md > > -- > Hugh Kelley > > > ___ > QGIS-Developer mailing listqgis-develo...@lists.osgeo.org > List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer > > -- http://www.spatialys.com > My software is free, but my time generally not. > > -- Hugh Kelley ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [QGIS-Developer] qgis ubuntu 20.04 dependencies
Of course as soon as I hit send I finally noticed that qt >= 5.14 is listed in the dependencies so that resolves my key question about a workaround. Disregard unless anyone knows the best way to handle Qt version for 20.04. I'm planning to ask on the qt forum. On Mon, Jun 19, 2023 at 2:30 PM Hugh Kelley wrote: > Hi all, > > while working on compiling qgis on ubuntu using these instructions [0] , > i've run into an error while running cmake that "QRecursiveMutex" is not > found. > > It looks like that became available in QT 5.14. > > Ubuntu 20.04 installs QT 5.12. During my searches i've seen comments that > imply 5.15 might not be available for 20.04. I'm trying to figure out > whether I should be trying to upgrade Qt, if I have to upgrade Ubuntu, or > if there is some option in the compilation process that can resolve this > for me. > > I've installed Qt 5.15.2 to /opt/ and added it to PATH, but qtdiag still > indicates i'm using 5.12.x > > I thought i'd start by asking here before asking on a Qt general forum in > case there's a qgis specific solution. > > I've also set the cmake 3d option to "no" which got me around the absence > of q qt 3d extras pacakge/file. So maybe there's a similar solution for > this although this version problem seem more essential. > > Thanks for any suggestions! > > > > > [0] https://github.com/qgis/QGIS/blob/master/INSTALL.md > > -- > Hugh Kelley > > -- Hugh Kelley ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
[QGIS-Developer] qgis ubuntu 20.04 dependencies
Hi all, while working on compiling qgis on ubuntu using these instructions [0] , i've run into an error while running cmake that "QRecursiveMutex" is not found. It looks like that became available in QT 5.14. Ubuntu 20.04 installs QT 5.12. During my searches i've seen comments that imply 5.15 might not be available for 20.04. I'm trying to figure out whether I should be trying to upgrade Qt, if I have to upgrade Ubuntu, or if there is some option in the compilation process that can resolve this for me. I've installed Qt 5.15.2 to /opt/ and added it to PATH, but qtdiag still indicates i'm using 5.12.x I thought i'd start by asking here before asking on a Qt general forum in case there's a qgis specific solution. I've also set the cmake 3d option to "no" which got me around the absence of q qt 3d extras pacakge/file. So maybe there's a similar solution for this although this version problem seem more essential. Thanks for any suggestions! [0] https://github.com/qgis/QGIS/blob/master/INSTALL.md -- Hugh Kelley ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
[QGIS-Developer] access virtual field from virtual layer
Hi, is it expected that a virtual layer cannot reference a virtual field from an imported layer? Using 3.28 if I create a virtual field on a shp sourced layer and then import that layer into the virtual layer creator dialogue and set the query to "select * from vfield_layer". the virtual field in the original layer is not included in the new virtual layer's attribute table. thanks! Hugh ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [QGIS-Developer] install plugin from github
Awesome that worked perfectly thank you! I had actually pulled the .py files up into the top level directory to solve that problem you identify while I was trying to get things running but obviously that is not the right solution long term. On Tue, Mar 21, 2023 at 10:14 AM Jacky Volpes via QGIS-Developer < qgis-developer@lists.osgeo.org> wrote: > Hi, > > I recommend that you clone the repository somewhere else on your computer, > and add the path in QGIS settings, in the System > Environment variable > section, in QGIS_PLUGINPATH (see capture below). > > This way you will always be able to put the correct path to the plugin. > > Because here for instance with this plugin > <https://github.com/tarot231/qgis-project-packager-plugin>, if you want > your method to work, you should put "ProjectPackager" directory in > C:\...AppData...\python\plugins\, which is one level inside the cloned repo. > (i.e. the plugin directory is the directory where the metadata.txt file > is, and not the whole directory from the repo). > > I also recommend the use of the plugin "Plugin Reloader", so that you can > reload your python files without quiting/lauching QGIS each time (or > deactivating/reactivating the plugin). > > > > > Regards, > > Jacky Volpes > Oslandia > > > > Le 21/03/2023 à 14:57, Hugh Kelley via QGIS-Developer a écrit : > > Hi, > > could anyone share instructions for installing a plugin from the source > code on github instead of the plugin manager and subsequently making > changes and running the plugin to see the difference? > > I've tried cloning the repo to: > > C:\Users\hkelley\AppData\Roaming\QGIS\QGIS3\profiles\project-packager_dev\python\plugins\qgis-project-packager-plugin > and moved some things around to copy the set up of other installed > plugins. > > The plugin appears in the "installed" list but doesn't work. > > Maybe I need to compile it? but I would have thought for a python only > plugin that wouldn't be necessary. > > I've also separately followed the instructions for building a plugin from > scratch using plug in builder and plugin reloader. It's not clear to me how > I would apply those steps to working with an existing plugin. > > thanks for any guidance. > > Hugh > > ___ > QGIS-Developer mailing listqgis-develo...@lists.osgeo.org > List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer > > > -- > Jacky Volpes > > Ingénieur SIG - Oslandia > > ___ > QGIS-Developer mailing list > QGIS-Developer@lists.osgeo.org > List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer > -- Hugh Kelley ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
[QGIS-Developer] install plugin from github
Hi, could anyone share instructions for installing a plugin from the source code on github instead of the plugin manager and subsequently making changes and running the plugin to see the difference? I've tried cloning the repo to: C:\Users\hkelley\AppData\Roaming\QGIS\QGIS3\profiles\project-packager_dev\python\plugins\qgis-project-packager-plugin and moved some things around to copy the set up of other installed plugins. The plugin appears in the "installed" list but doesn't work. Maybe I need to compile it? but I would have thought for a python only plugin that wouldn't be necessary. I've also separately followed the instructions for building a plugin from scratch using plug in builder and plugin reloader. It's not clear to me how I would apply those steps to working with an existing plugin. thanks for any guidance. Hugh ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
[QGIS-Developer] QGIS reading zipped fgdb
Hi, Just wanted to ask whether we would expect qgis 3.22 to read a zipped file geodatabase normally. >From a brief look, the data is read fine, but QGIS fails to successfully read the layer names and imports the datasets with names taken from the files in the fgdb. from the layer properties information tab name: CIP_FY22_FY23.gdb — CIP_FY22_FY23.gdb/a0009.gdbtable source: /vsizip/H:/5/50793_P_Anne Arundel County Bicycle and Pedestrian Master Plan Update/PRODUCTION/GIS/SHP/CIP_FY22_FY23.gdb.zip/CIP_FY22_FY23.gdb/a0009.gdbtable|layername=CIP_Proposed_Point I don't really have time to investigate further, and given that it's fgdb I don't think this is a big priority to support esri's file types perfectly, but I saw it mentioned recently that fgdb edit capabilities are coming to QGIS via the openfilegdb driver, so thought I'd share in case that's indicative of a larger problem of some sort. I've used the osgeo4w optional driver install in the past and appreciated that so I"m excited for this improvement. Hope everyone's week is going well. Hugh ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [QGIS-Developer] pyqgis labelling settings
I finally found time to try this and it worked very well. Thank you! one follow up question I have is that I can make the change visible by running layer.triggerRepaint(). That does not refresh the values in the layer styling panel. I need select a different layer and then select the original in order to see the changes I've made in pyqgis. Is there a command that will refresh that pane? On Sun, Oct 23, 2022 at 5:11 AM Francisco Puga wrote: > This should work when working with SingleLabels > > layer = iface.activeLayer() > settings = layer.labeling().settings() > textFormat = settings.format() > textFormat.setSize(20); > settings.setFormat(textFormat) > layer.labeling().setSettings(settings) > > hope it helps > > El vie, 21 oct 2022 a las 18:18, Hugh Kelley via QGIS-Developer > () escribió: > > > > Hi, > > > > I'm hoping to make some scripts for labelling layers. > > > > I've found the basic labelling settings in > > > > layer = > iface.activeLayer()layer.labeling().settings().format().size() > > > > for example, and it seems that I could be able to update that with an > object like > > > > newsize = QgsTextFormat() > > newsize.setSize(20) > > but I haven't yet found the correct way to update the layer's value. > > > > it seems like it needs to be passed an entire new `QgsPalLayerSettings` > object but I haven't found a way to build a complete object. > > > > I've seen `readFromLayer()` but I'm guessing that was a version 2 method > that's no longer available in version 3. > > > > any pointers or a simple piece of code for updating a layer labelling > property would be hugely appreciated. > > > > it also occurs to me to ask whether there is anything like: > > > > print(layer.renderer().symbol().symbolLayers()[0].properties()) > > > > that returns a dict of the layer symbology properties for a label. > > > > Another helpful thing would be code that imports a label definition from > an exported xml file. > > > > thanks, > > > > hugh > > > > ___ > > QGIS-Developer mailing list > > QGIS-Developer@lists.osgeo.org > > List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer > > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer > > > > -- > Francisco Puga > iCarto | Innovación, Cooperación, Cartografía y Territorio S.L. > https://icarto.es > > c/ Rafael Alberti nº 13 – 1º D > 15008 A Coruña > Galicia (Spain) > +34 881927808 > > Este correo electrónico contiene información estrictamente > confidencial y es de uso exclusivo del destinatario, quedando > prohibida a cualquier otra persona su revelación, copia, distribución, > o el ejercicio de cualquier acción relativa a su contenido. Si ha > recibido este mensaje por error, por favor conteste a su remitente > mediante correo electrónico y proceda a borrarlo de su sistema. > > Sus datos personales serán tratados de forma confidencial y no serán > cedidos a terceros ajenos a ICARTO. En cualquier caso, podrá ejercer > los derecho de oposición, acceso, rectificación y cancelación de > acuerdo con lo establecido en la Ley Orgánica 15/99, de 13 de > diciembre, de Protección de Datos de Carácter Personal dirigiéndose a > Innovación, Cooperación, Cartografía e Territorio, SL. (ICARTO) en la > dirección postal a C/ Rafael Alberti, nº 13, 1ºD, 15.008 – (A Coruña). > -- Hugh Kelley ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
[QGIS-Developer] pyqgis labelling settings
Hi, I'm hoping to make some scripts for labelling layers. I've found the basic labelling settings in layer = iface.activeLayer()layer.labeling().settings().format().size() for example, and it seems that I could be able to update that with an object like newsize = QgsTextFormat() newsize.setSize(20) but I haven't yet found the correct way to update the layer's value. it seems like it needs to be passed an entire new `QgsPalLayerSettings` object but I haven't found a way to build a complete object. I've seen `readFromLayer()` but I'm guessing that was a version 2 method that's no longer available in version 3. any pointers or a simple piece of code for updating a layer labelling property would be hugely appreciated. it also occurs to me to ask whether there is anything like: print(layer.renderer().symbol().symbolLayers()[0].properties()) that returns a dict of the layer symbology properties for a label. Another helpful thing would be code that imports a label definition from an exported xml file. thanks, hugh ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [QGIS-Developer] sklearn error
Hi Tyler, since I haven't seen anyone else respond I have a few questions/comments/suggestions. What OS are you using? It looks like windows based on the file paths. since sklearn has dependencies that require C bindings, you might have a much easier time doing your work in either a linux environment (WSL might be your easiest option), or using Anaconda. How are you installing sklearn? I don't believe conda is compatible with the way QGIS uses python, maybe others on the list will correct me about that. Possibly the most helpful thing I can suggest is not even bothering to try to install anything for python on windows with pip, it works for some of the basic libraries but most of the spatial libraries and probably the machine learning type stuff end up requiring wheel files that are just very difficult to get set up correctly. You might consider asking in a sklearn forum as this seems like more of a problem with sklearn than with qgis. On Thu, May 26, 2022 at 9:49 AM Tyler Veinot via QGIS-Developer < qgis-developer@lists.osgeo.org> wrote: > I am trying to use sklearn in QGIS python console, it is showing up as > installed and I can import modules from it but when I run script I get the > error message > "Traceback (most recent call last): > File "C:\OSGeo4W\apps\Python39\lib\code.py", line 90, in runcode > exec(code, self.locals) > File "", line 1, in > File "", line 6, in > File "C:\OSGeo4W/apps/qgis-ltr/./python\qgis\utils.py", line 888, in > _import > mod = _builtin_import(name, globals, locals, fromlist, level) > File > "C:\OSGeo4W\apps\Python39\lib\site-packages\sklearn\cluster\__init__.py", > line 6, in > from ._spectral import spectral_clustering, SpectralClustering > File "C:\OSGeo4W/apps/qgis-ltr/./python\qgis\utils.py", line 888, in > _import > mod = _builtin_import(name, globals, locals, fromlist, level) > File > "C:\OSGeo4W\apps\Python39\lib\site-packages\sklearn\cluster\_spectral.py", > line 15, in > from ..metrics.pairwise import pairwise_kernels > File "C:\OSGeo4W/apps/qgis-ltr/./python\qgis\utils.py", line 888, in > _import > mod = _builtin_import(name, globals, locals, fromlist, level) > File > "C:\OSGeo4W\apps\Python39\lib\site-packages\sklearn\metrics\__init__.py", > line 37, in > from . import cluster > File "C:\OSGeo4W/apps/qgis-ltr/./python\qgis\utils.py", line 888, in > _import > mod = _builtin_import(name, globals, locals, fromlist, level) > File > "C:\OSGeo4W\apps\Python39\lib\site-packages\sklearn\metrics\cluster\__init__.py", > line 8, in > from ._supervised import adjusted_mutual_info_score > File "C:\OSGeo4W/apps/qgis-ltr/./python\qgis\utils.py", line 888, in > _import > mod = _builtin_import(name, globals, locals, fromlist, level) > File > "C:\OSGeo4W\apps\Python39\lib\site-packages\sklearn\metrics\cluster\_supervised.py", > line 24, in > from ._expected_mutual_info_fast import expected_mutual_information > File "C:\OSGeo4W/apps/qgis-ltr/./python\qgis\utils.py", line 888, in > _import > mod = _builtin_import(name, globals, locals, fromlist, level) > ModuleNotFoundError: No module named > 'sklearn.metrics.cluster._expected_mutual_info_fast'" > Has anyone had this issue and devised a work around? > ___ > QGIS-Developer mailing list > QGIS-Developer@lists.osgeo.org > List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer > -- Hugh Kelley ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer