Re: [Qgis-user] Looking for QGIS Python code for a three-level menu?

2024-05-12 Thread Raymond Nijssen via QGIS-User
Wow, this is so much more logical! If this works, then why do we (still) have the addPluginToMenu() available? Raymond On 12-05-2024 22:26, Jürgen E. Fischer via QGIS-User wrote: Hi Mike, On Sun, 12. May 2024 at 17:35:14 +, Elstermann, Mike via QGIS-User wrote: I'm looking for a piece

Re: [Qgis-user] Looking for QGIS Python code for a three-level menu?

2024-05-12 Thread Raymond Nijssen via QGIS-User
Hi Mike, I'm afraid you cannot add submenus to the plugin menu. The addPluginToMenu function only takes actions as an argument: action_1 = QAction('Action 1') iface.addPluginToMenu('Plugin 1', action_1) menu_1 = QMenu('Menu 1') iface.addPluginToMenu('Plugin 1', menu_1) The last line

Re: [Qgis-user] web based spatial MIS/Dashboard

2024-04-22 Thread Raymond Nijssen via QGIS-User
Hi Janneke, Recently, I've been playing around with Apache Superset which I think can do what you are looking for and looks very promising! https://superset.apache.org/ Kind regards, Raymond On 22-04-2024 12:33, Janneke van Dijk via QGIS-User wrote: Dear QGIS developers and users, In my

Re: [Qgis-user] Determining the Name of the Current Style File of a QGIS layer

2024-04-12 Thread Raymond Nijssen via QGIS-User
Hi Bill, Didn't do any inverstigation, but I'm pretty sure that only the layer style gets set by the .qml, but the .qml file name doesn't get stored anywhere on the layer. So the QGIS project or layer is not aware of the .qml anymore. If you change the .qml you will not see anything changing

Re: [Qgis-user] QGIS Open Day 28 March 2024

2024-03-27 Thread Raymond Nijssen via QGIS-User
Hi Amy, Will this be Thursday 28 or Friday 29 ? (Friday 28 will not happen this month.) Kind regards, Raymond On 27-03-2024 11:06, Amy Ternent via QGIS-User wrote: Dear QGIS Users On Friday, 28 March 2024 we will be holding our year-eand festive QGIS Open Day! What is a QGIS Open Day you

Re: [Qgis-user] Hillshade default direction

2024-01-23 Thread Raymond Nijssen via QGIS-User
Hi David, On 23-01-2024 06:39, David Strip via QGIS-User wrote: After a lifetime of NW hillshades, my eye reverses hills and valleys when I shift the sun. This is not caused by looking at NW hillshades, but by looking at real life objects where light normally comes from above. This is what

Re: [Qgis-user] Cannot save

2023-11-30 Thread Raymond Nijssen via QGIS-User
Just guessing.. You're trying to export your layer and when you chose a file name you just typed it into the edit widget and did not choose the [...] button next to it to open file browser. Now QGIS will attempt to save your gpkg file in the installation folder or some other directory where

Re: [Qgis-user] Readonly geometries

2023-10-27 Thread Raymond Nijssen via QGIS-User
Haven't tried, but maybe 1:1 joining a second table to your layer and editing that table might work? Raymond On 23-10-2023 20:58, Simon Gröchenig via QGIS-User wrote: Hi list, is it possible to set geometries to readonly while attributes are editable? Simon

Re: [Qgis-user] How to permanently enable a plugin?

2023-04-07 Thread Raymond Nijssen via QGIS-User
Hi Adam, Normally it should work as you wish for. Once I had a customer with this problem. They were using Citrix and the user home directory (where plugins are stored) was either cleared at every startup, or the server where QGIS was running was a different every time. Could that be the

[Qgis-user] International QGIS User Conference & Contributor Meeting 2023

2023-02-02 Thread Raymond Nijssen via QGIS-User
Dear users and developers, After waiting for 3 years we are happy to announce that the conference website is live: https://uc2023.qgis.nl/ More details will follow soon, but for now please register and propose your talks and/or workshops. And especially for those who'd like to attend the

Re: [Qgis-user] CSV layer, Time column null expressie to test for NULL/empty?

2023-01-19 Thread Raymond Nijssen via QGIS-User
Or: coalesce(field, '') in ('', ' ', 'NULL') Raymond On 19-01-2023 09:53, kirk via QGIS-User wrote: You can also use CASE When field is null then 123 else 321 end Kirk Schmidt Sent from my Galaxy Original message From: Richard Duivenvoorde via QGIS-User Date:

Re: [Qgis-user] The license agreement of QGIS

2022-12-07 Thread Raymond Nijssen via QGIS-User
Yes, all free! Use as much QGIS as you like! However, if you are happy QGIS users and your organization is relying on the software, consider becoming a sustaining member. That way you can support the project, software development, bug fixing, upgrades and so on. More info over here:

Re: [Qgis-user] Faster Intersects

2022-09-09 Thread Raymond Nijssen via Qgis-user
Coverage’s with www.towercoverage.com <http://www.towercoverage.com> Need MikroTik Cloud Management: https://cloud.linktechs.net <https://cloud.linktechs.net> -Original Message- From: Qgis-user mailto:qgis-user-boun...@lists.osgeo.org>> On Behalf Of Raymond

Re: [Qgis-user] Faster Intersects

2022-09-09 Thread Raymond Nijssen via Qgis-user
Some things to check: * Is your data local? * Is it in a fast file format? (for example .gpkg or .shp and not .csv or .geojson) * Does the data have a spatial index? * Is the geometry very complicated, like a huge multi polygon with thousands of vertices and islands? In that case, split it up

Re: [Qgis-user] NULL in attribute table

2022-07-06 Thread Raymond Nijssen via Qgis-user
Hi Dario, In an expression you can use the coalesce() function: coalesce("field", 'alternative value') Raymond On 06-07-2022 18:15, Dario C via Qgis-user wrote: Hi there, I'm using an attribute table on my layout. For all the field without any value I have NULL. Is there any way to add an

Re: [Qgis-user] shp file vs vector laag

2022-05-25 Thread Raymond Nijssen via Qgis-user
Hoi Theo, Dit is een internationaal kanaal waar in het Engels wordt gecommuniceerd. Groet, Raymond On 25-05-2022 13:40, Theo Stevens via Qgis-user wrote: Beste, Ik ben pas sinds maart 2022 een gebruiker van Qgisp en probeer nu mijn gegevens via Qgis2web om te zetten om op het net te

Re: [Qgis-user] quit() and exit()

2022-05-02 Thread Raymond Nijssen via Qgis-user
Put your code in a main() function and use return to leave the function? On 02-05-2022 18:06, Stephen Sacks via Qgis-user wrote: I would like to terminate a Python script gracefully.  Both quit() and exit() not only abort the script but end the entire QGIS app.  For example, if a file I want

Re: [Qgis-user] Classify road network into dead-end links and links connected on both ends

2022-05-02 Thread Raymond Nijssen via Qgis-user
Hi Roland, You could either go making SQL queries (using st_startpoint() and st_endpoint() et cetera) or have a look at the "Networks" plugin which has a lot of this kind of functionality. https://plugins.qgis.org/plugins/networks/ And there are several other network and topology related

Re: [Qgis-user] create PostGIS view from QGis layer

2022-04-28 Thread Raymond Nijssen via Qgis-user
Hi Gert-Jan, Not sure how exactly you are filtering your data, but to create views you can run these queries on your PostgreSQL database using the tool you like (for example DB-manager in QGIS, or DBeaver or PGAdmin). In case this is an SQL query filter: CREATE VIEW blabla1 AS [your sql

Re: [Qgis-user] Change properties of multiple layer at once

2022-04-01 Thread Raymond Nijssen via Qgis-user
Don't know how to do that using the GUI, but for the opacity you can use these 2 lines of python in the QGIS python console. It will set all your selected layers to 50% opacity. for layer in iface.layerTreeView().selectedLayers(): layer.setOpacity(.5) I think the stroke style is harder