[QGIS-Developer] OpenID Connect authentication

2022-12-09 Thread Paul Wittle via QGIS-Developer
Hi, I have a web service that I've configured to use OpenID Connect for authentication. I'm aware that QGIS supports Oauth2 authentication and I believe that could work for the authentication but can you confirm whether it is possible to overwrite the redirect URL? The reason I ask is that

Re: [QGIS-Developer] How to make custom toolbar actions work with Interface Customization dialog

2022-10-07 Thread Paul Wittle via QGIS-Developer
Hi, Answering my own question I think. I added .setObjectName() on my QAction object and now I get an actual name in the name column. It seems to be remembering my selections now in the Interface Customization so hopefully this reply will help others. Thanks, Paul From: Paul Wittle Sent: 07

[QGIS-Developer] How to make custom toolbar actions work with Interface Customization dialog

2022-10-07 Thread Paul Wittle via QGIS-Developer
Hi, I’ve added a number of toolbars to QGIS in a custom python plugin using the basic templates and adding a QAction element. My buttons appear and they work but if I try to switch off a button using the Interface Customiszation options it doesn’t work because the toolbar can be toggled but

[QGIS-Developer] Long term release

2021-12-02 Thread Paul Wittle
Hi, Notice from the previous conversations that the long term release has been causing a few issues and debates but would it be possible for someone to clarify where we stand? The blog posts last week said to revert to 3.16.11 or upgrade to 3.16.14 after it's release. My understanding is that

Re: [QGIS-Developer] Feature discussion

2021-07-01 Thread Paul Wittle
Hi, I was not aware of that option and as you say I think that covers it nicely enough anyway. Thanks for pointing it out but any examples people have would be super useful. Thanks again, Paul From: Charles Dixon-Paver Sent: 01 July 2021 09:54 To: Paul Wittle Cc: qgis-dev Subject: Re

[QGIS-Developer] Feature discussion

2021-07-01 Thread Paul Wittle
Hi, I suspect this has already been asked a few times but I thought I'd ask anyway. Is there a feature request to get a dialogue box to appear when saving a project? I'm asking because if the knock on impact of Covid is more people working from home and using home broadband then I feel like

Re: [QGIS-Developer] QGIS standalone script examples (and Oracle)

2021-06-01 Thread Paul Wittle
stuff Save project However I suspect it will be quicker to just switch the method of my WFS layer to match the ones that work. Thanks, Paul -Original Message- From: Richard Duivenvoorde Sent: 01 June 2021 17:26 To: Paul Wittle Cc: qgis-dev Subject: Re: [QGIS-Developer] QGIS standalone

Re: [QGIS-Developer] QGIS standalone script examples (and Oracle)

2021-06-01 Thread Paul Wittle
there must be another path I need to set? You mentioned you'd explicitly set the Oracle paths in something you did previously...is there an Oracle setting that should be set if running QGIS standalone? Thanks again for all your help on this. Paul -Original Message- From: Paul Wittle Sent: 26 May

Re: [QGIS-Developer] QGIS standalone script examples (and Oracle)

2021-05-26 Thread Paul Wittle
in the .init() function? Thank you again for all your help on this as I think I should be able to get it working now even if I do have to copy the relevant *.db files to the python folder. Best Regards, Paul -Original Message- From: Richard Duivenvoorde Sent: 26 May 2021 10:13 To: Paul Wittle

Re: [QGIS-Developer] QGIS standalone script examples (and Oracle)

2021-05-26 Thread Paul Wittle
file. Can anyone else replicate this issue or is it just me? Thanks, Paul -Original Message- From: Paul Wittle Sent: 26 May 2021 07:40 To: rdmaili...@duif.net Cc: qgis-dev Subject: RE: [QGIS-Developer] QGIS standalone script examples (and Oracle) Hi, Sorry another slight miscommunication

Re: [QGIS-Developer] QGIS standalone script examples (and Oracle)

2021-05-26 Thread Paul Wittle
in the standalone script will require the correct drivers to exist so perhaps that will protect the existing layers? I'll give it a shot. Thanks, Paul -Original Message- From: Richard Duivenvoorde Sent: 25 May 2021 20:32 To: Paul Wittle Cc: qgis-dev Subject: Re: [QGIS-Developer] QGIS

Re: [QGIS-Developer] QGIS standalone script examples (and Oracle)

2021-05-25 Thread Paul Wittle
. The Converts to: I think the way I'm calling the standalone script must just not work...but I'm not sure why. Thanks again for all your help on this. Paul -Original Message- From: Paul Wittle Sent: 25 May 2021 08:41 To: rdmaili...@duif.net Cc: qgis-dev Subject: RE: [QGIS-Developer

Re: [QGIS-Developer] QGIS standalone script examples (and Oracle)

2021-05-25 Thread Paul Wittle
To: Paul Wittle Cc: qgis-dev Subject: Re: [QGIS-Developer] QGIS standalone script examples (and Oracle) On 5/24/21 2:54 PM, Paul Wittle wrote: > Unfortunately I can't simply exclude Oracle as that is currently our spatial > database provider and whilst we are migrating to Postg

Re: [QGIS-Developer] QGIS standalone script examples

2021-05-24 Thread Paul Wittle
Sent: 24 May 2021 13:10 To: Paul Wittle Cc: qgis-dev Subject: Re: [QGIS-Developer] QGIS standalone script examples On 5/24/21 1:39 PM, Paul Wittle wrote: > Thanks for that; it is great to see your script. > > I tried running it with our own project file and the results are the same

Re: [QGIS-Developer] QGIS standalone script examples

2021-05-24 Thread Paul Wittle
nd because it is running standalone. Is that enough information? Thanks, Paul -Original Message- From: Richard Duivenvoorde Sent: 23 May 2021 20:32 To: Paul Wittle ; qgis-developer@lists.osgeo.org Subject: Re: [QGIS-Developer] QGIS standalone script examples Hi Paul, Can you come up with a l

[QGIS-Developer] QGIS standalone script examples

2021-05-23 Thread Paul Wittle
Hi folks, I’m trying to do a simple script to open an existing project, add a layer and then save the result but finding it hard to piece together the information I can find online. I’ve found various posts suggesting that you need to connect up the canvas or all the GUI information gets lost

Re: [QGIS-Developer] Odd error

2021-04-23 Thread Paul Wittle
at Example Process - Pastebin.com<https://pastebin.com/UaS4rWFW> I’m on Windows 10 1909 and using QGIS version 3.16.0-Hannover (64bit). Would someone be able to try loading the script for me and let me know if you can replicate the issue? Thanks, Paul From: Paul Wittle Sent: 22 April 2021

Re: [QGIS-Developer] Odd error

2021-04-22 Thread Paul Wittle
oordinates',None,True)) Is there a better way to open a script from a button on the toolbar. Ideally I want to simply replicate the behaviour of just double clicking the script from the processing toolbox. Thanks, Paul From: Paul Wittle Sent: 21 April 2021 09:16 To: nagyrob...@yahoo.com Subject:

[QGIS-Developer] Odd error

2021-04-21 Thread Paul Wittle
from the processing toolbox fine  Any suggestions would be appreciated. Paul Wittle [cid:image001.jpg@01D7368C.B3C78E00]<https://www.dorsetcouncil.gov.uk/> Business Solutions Analyst (GIS) ICT Operations Dorset Council 01305 228473 dorsetcouncil.gov.uk<https://www.dorsetcounc

[QGIS-Developer] QGIS and opening selected feature attributes

2021-04-01 Thread Paul Wittle
, Paul Wittle [cid:image002.jpg@01D72706.0E97B7B0]<https://www.dorsetcouncil.gov.uk/> Business Solutions Analyst (GIS) ICT Operations Dorset Council 01305 228473 dorsetcouncil.gov.uk<https://www.dorsetcouncil.gov.uk> [cid:image004.png@01D72706.0E97B7B0]<https://www.facebook.com/

[QGIS-Developer] QGIS projecting loading and WFS layer validation

2021-02-22 Thread Paul Wittle
Hi, I've noticed that if you put a smaller timeout under the Network settings then I often find that I get invalid layer errors for WFS layers. This is odd because the timeout was set at 5 seconds and I'm pretty sure the load process was not waiting 5 seconds per WFS layer (it was too quick

[QGIS-Developer] Python connection to Microsoft SQL Server database

2021-01-17 Thread Paul Wittle
Hi, I’m trying to get some data from an MS SQL Server database using the QSqlDatabase QODBC driver. I’m struggling to find an example online…I know Microsoft SQL is avoided in most cases but does anyone know the format for the connection string to put under setDatabaseName? Ideally I want to

Re: [QGIS-Developer] Loading WFS layers from GeoServer (Paul Wittle)

2021-01-07 Thread Paul Wittle
Hi, I have now resolved the issue I was having and I'm posting in case it helps others. In terms of ensuring the geometry type / projection is correct I have now moved to use the geometry_columns table

Re: [QGIS-Developer] Loading WFS layers from GeoServer

2020-11-30 Thread Paul Wittle
I’d provide a further update in case anyone else has noticed similar behaviour. Thanks for all the replies so far, Paul From: Ian Turton Sent: 27 November 2020 15:35 To: Paul Wittle Cc: rdmaili...@duif.net; qgis-developer@lists.osgeo.org Subject: Re: [QGIS-Developer] Loading WFS layers from

Re: [QGIS-Developer] Loading WFS layers from GeoServer

2020-11-27 Thread Paul Wittle
to: FriendlyEventName=Stopped working ConsentKey=APPCRASH So I don’t think my Windows knows what went wrong. Is there another log I can look for that might give something more useful? Thanks, Paul From: Ian Turton Sent: 27 November 2020 15:35 To: Paul Wittle Cc: rdmaili...@duif.net; qgis-developer

Re: [QGIS-Developer] Loading WFS layers from GeoServer

2020-11-27 Thread Paul Wittle
uot;2"> 389814.604 97465.168 389823.18 97454.59 389858.98 97463.67 389855.18 97472.01 389849.77 97481.28 389845.792 97486.125 389814.604 97465.168 Does that give any clues? I'll head off and check it in my 3.16 version now. Paul -Original Message----- From: Paul Wittle Sent: 27 Nov

Re: [QGIS-Developer] Loading WFS layers from GeoServer

2020-11-27 Thread Paul Wittle
To: Paul Wittle ; qgis-developer@lists.osgeo.org Subject: Re: [QGIS-Developer] Loading WFS layers from GeoServer Hi Paul, QGIS 3.16 (well, since ... I don not know exactly) has s NetworkLogger/Debugger. If you hit the F12 button, you will see all WFS-requests that QGIS is firing to the server. You

Re: [QGIS-Developer] Loading WFS layers from GeoServer

2020-11-27 Thread Paul Wittle
as a bad layer if you save it in the project. Does anyone have any suggestions of what might be the issue? The server does require authentication. Thanks, Paul From: Ian Turton Sent: 27 November 2020 09:59 To: Paul Wittle Cc: qgis-developer@lists.osgeo.org Subject: Re: [QGIS-Developer] Loading WFS

[QGIS-Developer] Loading WFS layers from GeoServer

2020-11-27 Thread Paul Wittle
Hi, I'm trying to load some WFS layers from my internal GeoServer into QGIS 3.10 and 3.16. The datastore in GeoServer is based on a view in a SQL Server database but it does have a primary key on the spatial table at least. When I load it in 3.10 it comes in as the image icon (i.e. doesn't

Re: [QGIS-Developer] Remove all rubberbands from the canvas

2020-09-22 Thread Paul Wittle
at a higher level (i.e. rubberbandList = {}) and that allowed me to use the scene().removeItem() successfully. Hope that is helpful to others. Paul From: Paul Wittle Sent: 22 September 2020 14:52 To: Florian Heyder Subject: RE: [QGIS-Developer] Remove all rubberbands from the canvas Hi

Re: [QGIS-Developer] Remove all rubberbands from the canvas

2020-09-22 Thread Paul Wittle
, 2020 at 9:02 AM Paul Wittle < paul.wit...@dorsetcouncil.gov.uk> wrote: > Hi, > > > > I’m having an issue with the documentation this morning. I’m writing a > small python plugin and adding rubberbands to the canvas which is fine > but for some reason I can’t seem to

[QGIS-Developer] Remove all rubberbands from the canvas

2020-09-22 Thread Paul Wittle
the canvas? Any help would be great  Thanks, Paul Wittle [cid:image001.jpg@01D690BF.042E8840]<https://www.dorsetcouncil.gov.uk/> Business Solutions Analyst (GIS) ICT Operations Dorset Council 01305 228473 dorsetcouncil.gov.uk<https://www.dorsetcouncil.gov.uk> [cid:image002.png@01D69

Re: [QGIS-Developer] GeoPackage - where are we -where do we go

2020-06-05 Thread Paul Wittle
it is only a few users. Anyway; I'd be interested to know if it is fixed. Thanks, Paul Wittle [cid:image009.jpg@01D63B1F.39488FD0]<https://www.dorsetcouncil.gov.uk/> Business Solutions Analyst (GIS) ICT Operations Dorset Council 01305 228473 dorsetcouncil.gov.uk<https://www.dorsetcounc

Re: [QGIS-Developer] QGIS 3.10 error importing pyproj

2020-02-27 Thread Paul Wittle
Hi, I'm having similar issues and sent a message previously. Please can someone confirm if this is a known bug which is being worked on as it is causing me quite a few issues and at the moment I've run out of ideas; it appears to be a regression in the latest release (unless it has been fixed

[QGIS-Developer] Issue with pyproj import _datadir in 3.4.15 via OWSLib

2020-02-16 Thread Paul Wittle
which I found referenced somewhere. I don't seem to be getting the issue on my 32 bit installation but then for course it was a separate install download so I'm not 100% certain why that one works and this one doesn't. Any help or pointers would be apricated, Paul Wittle This e-mail and any files t

Re: [QGIS-Developer] Add support for travelling sales routing, Z-level and turn restrictions

2019-10-17 Thread Paul Wittle
or worse  Paul From: Régis Haubourg Sent: 17 October 2019 13:13 To: Paul Wittle Cc: qgis-developer@lists.osgeo.org Subject: Re: [QGIS-Developer] Add support for travelling sales routing, Z-level and turn restrictions Hi again, your points are very valid. Did your company considered in helping

Re: [QGIS-Developer] Add support for travelling sales routing, Z-level and turn restrictions

2019-10-17 Thread Paul Wittle
as it is helpful for me to work out where my views sit in comparison to other QGIS users  Paul -Original Message- From: Régis Haubourg Sent: 17 October 2019 11:48 To: Paul Wittle Cc: qgis-developer@lists.osgeo.org Subject: Re: [QGIS-Developer] Add support for travelling sales routing, Z-level

[QGIS-Developer] Add support for travelling sales routing, Z-level and turn restrictions

2019-10-17 Thread Paul Wittle
Hi, I've just added an enhancement proposal (https://github.com/qgis/QGIS-Enhancement-Proposals/issues/159) for some work I would like to be involved with. I hope that is the right place to put it for discussion but I'm assuming there may also be some chat about it on here so I thought I'd

Re: [QGIS-Developer] Running vs triggering/opening a custom process via Python

2019-09-20 Thread Paul Wittle
:31 To: Paul Wittle Cc: qgis-developer@lists.osgeo.org Subject: Re: [QGIS-Developer] Running vs triggering/opening a custom process via Python you can get the dialog of the processing algorithm you want and use that... hereafter a snippet dialog = processing.createAlgorithmDialog

[QGIS-Developer] Running vs triggering/opening a custom process via Python

2019-09-19 Thread Paul Wittle
Hi, Sorry if this is a bit of a simple question. I have created a script in the processing toolbox and it opens a dialogue box when you double click on it (as you would expect). Given that many users may not understand or even open the processing toolbox I want to trigger the script using a

[QGIS-Developer] Plugin version number

2019-09-13 Thread Paul Wittle
Hi, It is possible to see the plugin version number (from the metadata file) when you open the manage plugins window and select a plugin. Is it possible to retrieve this version number using Python in the plugin itself? It's not really very important but I just want to be able to include it