Re: [QGIS-Developer] Building from source using Qt6

2022-08-08 Thread Nyall Dawson via QGIS-Developer
On Tue, 9 Aug 2022 at 16:05, Paul Burns  wrote:
>
> Thanks Nyall.
>
> Ok I'll revert back to Qt5. Is there a preferred Qt5 version?

Definitely 5.15. (It's likely in the coming weeks that this will
become the minimum allowed version when building from master).

> Is there a design document, or anything that describes/summarises the 
> structure of the source code, which functionality is where etc.

The best place to start is
https://docs.qgis.org/3.22/en/docs/developers_guide/index.html

Nyall


>
> Paul
>
> -Original Message-
> From: Nyall Dawson 
> Sent: Tuesday, 9 August 2022 2:43 PM
> To: Paul Burns 
> Cc: qgis-developer@lists.osgeo.org
> Subject: Re: [QGIS-Developer] Building from source using Qt6
>
> On Tue, 9 Aug 2022 at 14:15, Paul Burns via QGIS-Developer 
>  wrote:
> >
> > I am attempting to build qgis from https://github.com.qgis/QGIS. I have 
> > been working my way through the dependencies in CMakeLists.txt. I am using 
> > QtCreator 7.0.2 based on Qt 6.2.3.
> >
> >
> >
> > In the CMakeLists.txt section “# search for Qt”, around line 450, I see 
> > that the variable BUILD_WITH_QT6 is set to false.
> >
> >
> >
> > Can I use Qt6 to build the current QGIS source?
>
> Basically no. It's a wip which is still a considerable time off.
>
> Nyall
>
___
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] Building from source using Qt6

2022-08-08 Thread Paul Burns via QGIS-Developer
Thanks Nyall.

Ok I'll revert back to Qt5. Is there a preferred Qt5 version?

Is there a design document, or anything that describes/summarises the structure 
of the source code, which functionality is where etc.

Paul

-Original Message-
From: Nyall Dawson  
Sent: Tuesday, 9 August 2022 2:43 PM
To: Paul Burns 
Cc: qgis-developer@lists.osgeo.org
Subject: Re: [QGIS-Developer] Building from source using Qt6

On Tue, 9 Aug 2022 at 14:15, Paul Burns via QGIS-Developer 
 wrote:
>
> I am attempting to build qgis from https://github.com.qgis/QGIS. I have been 
> working my way through the dependencies in CMakeLists.txt. I am using 
> QtCreator 7.0.2 based on Qt 6.2.3.
>
>
>
> In the CMakeLists.txt section “# search for Qt”, around line 450, I see that 
> the variable BUILD_WITH_QT6 is set to false.
>
>
>
> Can I use Qt6 to build the current QGIS source?

Basically no. It's a wip which is still a considerable time off.

Nyall

___
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] Changes to CI test setup

2022-08-08 Thread Nyall Dawson via QGIS-Developer
Hi all!

Quick heads-up about some changes to our CI setup. Previously we
relied heavily on the cdash server run at
https://cdash.orfeo-toolbox.org/ to make images rendered during tests
available and visible for comparison purposes.

This hasn't been working well (well, at all) lately.

So I've just implemented some changes to the Github workflows so that
now any rendered images which cause tests to fail are now available as
an artifact after the tests complete. You can access these via the
"Checks" -> "QGIS Tests" page on the pull request, as the
"test-results" artifact.

Ideally we'd make these results a bit more visible (E.g. auto-creating
a comment on the PR with a link to the report, or even better
embedding the rendered image results directly as a comment to the
PR!), so if anyone has any experience in github workflows and wants to
give this a shot it'd be much appreciated by all!

Nyall
___
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] Building from source using Qt6

2022-08-08 Thread Nyall Dawson via QGIS-Developer
On Tue, 9 Aug 2022 at 14:15, Paul Burns via QGIS-Developer
 wrote:
>
> I am attempting to build qgis from https://github.com.qgis/QGIS. I have been 
> working my way through the dependencies in CMakeLists.txt. I am using 
> QtCreator 7.0.2 based on Qt 6.2.3.
>
>
>
> In the CMakeLists.txt section “# search for Qt”, around line 450, I see that 
> the variable BUILD_WITH_QT6 is set to false.
>
>
>
> Can I use Qt6 to build the current QGIS source?

Basically no. It's a wip which is still a considerable time off.

Nyall
___
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] Building from source using Qt6

2022-08-08 Thread Paul Burns via QGIS-Developer
I am attempting to build qgis from https://github.com.qgis/QGIS. I have been
working my way through the dependencies in CMakeLists.txt. I am using
QtCreator 7.0.2 based on Qt 6.2.3.

 

In the CMakeLists.txt section "# search for Qt", around line 450, I see that
the variable BUILD_WITH_QT6 is set to false.

 

Can I use Qt6 to build the current QGIS source?

___
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] Signing key missing on keyserver(s)

2022-08-08 Thread Andrea Giudiceandrea via QGIS-Developer

Il 08/08/2022 20:12, Martin Weis via QGIS-Developer ha scritto:

Documentation update would be wonderful (change the year) on
https://qgis.org/en/site/forusers/alldownloads.html#debian-ubuntu

Yay, this key is valid until 2027 [expires: 2027-08-08].


Hi Martin,
the new signing key was added just today to the server and the 
documentation was updated accordingly as you can see at 
https://qgis.org/en/site/forusers/alldownloads.html#debian-ubuntu (with 
a little delay needed for the Website rebuild).


Best regards.

Andrea Giudiceandrea


___
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] Signing key missing on keyserver(s)

2022-08-08 Thread Martin Weis via QGIS-Developer
Hello,

I could not find the current signing key for QGIS repos on any
keyserver, could someone upload it or name a server having it already?
Or are keyservers not the way to distribute it?

OK, found it on the server, this worked fine:

wget -qO - https://qgis.org/downloads/qgis-2022.gpg.key | sudo gpg
--no-default-keyring --keyring
gnupg-ring:/etc/apt/trusted.gpg.d/qgis-archive.gpg --import
sudo chmod a+r /etc/apt/trusted.gpg.d/qgis-archive.gpg

Documentation update would be wonderful (change the year) on
https://qgis.org/en/site/forusers/alldownloads.html#debian-ubuntu

Yay, this key is valid until 2027 [expires: 2027-08-08].


Error encountered during upgrade was like

apt update

> Err:11 https://ubuntugis.qgis.org/ubuntugis focal InRelease
>   The following signatures couldn't be verified because the public key
is not available: NO_PUBKEY D155B8E6A419C5BE

apt-key adv --keyserver keyserver.ubuntu.com --recv-keys D155B8E6A419C5BE

> Executing: /tmp/apt-key-gpghome.ChQSJu3epZ/gpg.1.sh --keyserver
keyserver.ubuntu.com --recv-keys D155B8E6A419C5BE
> gpg: keyserver receive failed: No data


The old one is about to expire:

> pub   rsa4096 2021-08-09 [SCEA] [expires: 2022-08-09]
>  2445 D6B2 54DA C452 A498  989E 46B5 721D BBD2 996A
> uid   [ unknown] QGIS Archive Automatic Signing Key (2021)



Thank you so much for all your efforts
Martin
___
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] passing parameters to QGIS Python-Script started via Command Line

2022-08-08 Thread Ujaval Gandhi via QGIS-Developer
One option is to set env variables before launching the qgis command. The env
variables can be read from python.


set QGIS_MESSAGE=Helllo World




Then your myscript.py can be something like


from qgis.utils import iface
import os

message = os.environ['QGIS_MESSAGE']
iface.messageBar().pushMessage(message)





---
Ujaval Gandhi
Spatial Thoughts
www.spatialthoughts.com [http://www.spatialthoughts.com]




[data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAQABAAACAkQBADs=3D]
On Mon, Aug 8, 2022 at 7:52 PM Matthias Kuhn via QGIS-Developer
 wrote:

> Hi Peter,
> 
> 
> You are correct with the analysis of the situation.
> 
> 
> Even if `qgis --help` states the following:
>  [--] treat all following arguments as FILEs
> 
> 
> it does in fact already interpret parameters as files before the `--`
> parameter.
> Changing this behavior is risky (it will break many startup scripts out there)
> and can be considered for QGIS 4.
> For now, we could add another marker as a band aid, e.g. we add a `--ex`
> (extra-parameters) that indicates that any parameters that follow should NOT
> be interpreted as files:
> 
> 
> 
>     qgis -p 1234.qgs --code script.py [files could be here] --ex
> --myparam=1324 -- [more files can still be here]
> 
> 
> If that sounds like what you are looking for, we are happy to help you with
> that
> 
> 
> Best regards
> Matthias
> 
> On Mon, Aug 8, 2022 at 3:55 PM Drexel Peter via QGIS-Developer
>  wrote:
> 
> 
> > Hi everyone,
> > 
> > My goal: I want to open QGIS using the Command-Line, load a specific
> > project, select specific features and zoom to the selected features.
> > 
> > What sounds rather difficult is actually mostly solvable using the
> > following:
> > 
> > "C:\Program Files\QGIS 3.16\bin\qgis-ltr-bin.exe" -p "d:\standardebenen.qgs"
> > --code myscript.py
> > 
> >  
> > 
> > This opens QGIS with the Project d:\standardebenen.qgs and after that it
> > runs the script “myscript.py”.
> > 
> > Within the scrip I can do everything what I can do in a Python-script, so
> > there I can select some features in a layer and show that selection.
> > 
> > But this selections are “hard-coded” in the script, I cannot pass over these
> > parameters to the myscript.py.
> > 
> > In “Pure Python” I can pass parameters to a Python Script using “python
> > myscript.py arg1 arg2 arg3”.
> > 
> > This seems to be not working in the QGIS-Command-Line  as the parameters are
> > interpreted as “layers to load”.
> > 
> > Am I right with my analysis?
> > 
> > One workaround is to write the parameters to al file and use this file
> > within the myscript.py to define the selections. But this is very unhandy…
> > 
> > Are there any ideas from any QGIS-Expert to solve my problem?
> > 
> >  
> > 
> > If this cannot be solved in the current version of QGIS is one of the
> > developers willing to get in contact with me to make an offer the implement
> > this feature ?
> > 
> > Thanks
> > 
> > Peter
> > 
> > ___
> > QGIS-Developer mailing list
> > QGIS-Developer@lists.osgeo.org [QGIS-Developer@lists.osgeo.org]
> > List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> > [https://lists.osgeo.org/mailman/listinfo/qgis-developer]
> > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> > [https://lists.osgeo.org/mailman/listinfo/qgis-developer]
> 
> 
> https://qfield.org/get/
> [https://ci4.googleusercontent.com/proxy/GqvhkBbIsDNWtqe2HThZLEElIli5211Hog29CYort7mWquajzTRIucqyquJ4nK_KuFTbuEa2CCNNIfLx52nBCCQkb6EWyBAfIjM_iV06dJPuBZpmAolhpdzysf0=s0-d-e1-ft#https://www.opengis.ch/wp-content/uploads/2022/04/Qfield_Banner_email.png]
> [https://qfield.org/get/]
> 
> QFIELD 2.0 IS HERE! - Hold the power of QGIS in your hand - learn more
> [https://www.opengis.ch/2022/04/05/qfield-2-0-is-here/] - get it now
> [https://qfield.org/get]
> 
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org [QGIS-Developer@lists.osgeo.org]
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> [https://lists.osgeo.org/mailman/listinfo/qgis-developer]
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> [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] passing parameters to QGIS Python-Script started via Command Line

2022-08-08 Thread Matthias Kuhn via QGIS-Developer
Hi Peter,

You are correct with the analysis of the situation.

Even if `qgis --help` states the following:
 [--] treat all following arguments as FILEs

it does in fact already interpret parameters as files before the `--`
parameter.
Changing this behavior is risky (it will break many startup scripts out
there) and can be considered for QGIS 4.
For now, we could add another marker as a band aid, e.g. we add a `--ex`
(extra-parameters) that indicates that any parameters that follow should
NOT be interpreted as files:

qgis -p 1234.qgs --code script.py [files could be here] --ex
--myparam=1324 -- [more files can still be here]

If that sounds like what you are looking for, we are happy to help you with
that

Best regards
Matthias

On Mon, Aug 8, 2022 at 3:55 PM Drexel Peter via QGIS-Developer <
qgis-developer@lists.osgeo.org> wrote:

> Hi everyone,
>
> My goal: I want to open QGIS using the Command-Line, load a specific
> project, select specific features and zoom to the selected features.
>
> What sounds rather difficult is actually mostly solvable using the
> following:
>
> "C:\Program Files\QGIS 3.16\bin\qgis-ltr-bin.exe" -p
> "d:\standardebenen.qgs" --code myscript.py
>
>
>
> This opens QGIS with the Project d:\standardebenen.qgs and after that it
> runs the script “myscript.py”.
>
> Within the scrip I can do everything what I can do in a Python-script, so
> there I can select some features in a layer and show that selection.
>
> But this selections are “hard-coded” in the script, I cannot pass over
> these parameters to the myscript.py.
>
> In “Pure Python” I can pass parameters to a Python Script using “python
> myscript.py arg1 arg2 arg3”.
>
> This seems to be not working in the QGIS-Command-Line  as the parameters
> are interpreted as “layers to load”.
>
> Am I right with my analysis?
>
> One workaround is to write the parameters to al file and use this file
> within the myscript.py to define the selections. But this is very unhandy…
>
> Are there any ideas from any QGIS-Expert to solve my problem?
>
>
>
> If this cannot be solved in the current version of QGIS is one of the
> developers willing to get in contact with me to make an offer the implement
> this feature ?
>
> Thanks
>
> Peter
> ___
> 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
>

-- 
 

QFIELD 2.0 IS HERE! - Hold the power of QGIS in 
your hand - learn more 
 - get it now 


___
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] passing parameters to QGIS Python-Script started via Command Line

2022-08-08 Thread Drexel Peter via QGIS-Developer
Hi everyone,
My goal: I want to open QGIS using the Command-Line, load a specific project, 
select specific features and zoom to the selected features.
What sounds rather difficult is actually mostly solvable using the following:
"C:\Program Files\QGIS 3.16\bin\qgis-ltr-bin.exe" -p "d:\standardebenen.qgs" 
--code myscript.py

This opens QGIS with the Project d:\standardebenen.qgs and after that it runs 
the script "myscript.py".
Within the scrip I can do everything what I can do in a Python-script, so there 
I can select some features in a layer and show that selection.
But this selections are "hard-coded" in the script, I cannot pass over these 
parameters to the myscript.py.
In "Pure Python" I can pass parameters to a Python Script using "python 
myscript.py arg1 arg2 arg3".
This seems to be not working in the QGIS-Command-Line  as the parameters are 
interpreted as "layers to load".
Am I right with my analysis?
One workaround is to write the parameters to al file and use this file within 
the myscript.py to define the selections. But this is very unhandy...
Are there any ideas from any QGIS-Expert to solve my problem?

If this cannot be solved in the current version of QGIS is one of the 
developers willing to get in contact with me to make an offer the implement 
this feature ?
Thanks
Peter
___
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] No API documentation for QGIS 3.26

2022-08-08 Thread Delaz J via QGIS-Developer

Thanks, Denis.


H.

Le 08/08/2022 à 15:11, Denis Rouzaud a écrit :

Hi,

For PyQGIS, I just updated the Docker image creation [0] which will 
trigger PyQGIS doc afterwards.

I cannot speak for API docs.

Sorry for the delay.

Denis

[0] 
https://github.com/qgis/QGIS/commit/d3cda6973e4eae98eaf8018e2da7088c86fd31f8


Le lun. 8 août 2022 à 14:33, Delaz J via QGIS-Developer 
 a écrit :


Hi,

Just to mention that there is no API documentation for QGIS 3.26,
no c++
[0] , no pyqgis [1]. It is a bit unfortunate. Any chance these are
updated, please?

Thanks.

Regards,

Harrissou


[0] https://api.qgis.org/api/3.26

[1] https://qgis.org/pyqgis/3.26

___
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] No API documentation for QGIS 3.26

2022-08-08 Thread Denis Rouzaud via QGIS-Developer
Hi,

For PyQGIS, I just updated the Docker image creation [0] which will trigger
PyQGIS doc afterwards.
I cannot speak for API docs.

Sorry for the delay.

Denis

[0]
https://github.com/qgis/QGIS/commit/d3cda6973e4eae98eaf8018e2da7088c86fd31f8

Le lun. 8 août 2022 à 14:33, Delaz J via QGIS-Developer <
qgis-developer@lists.osgeo.org> a écrit :

> Hi,
>
> Just to mention that there is no API documentation for QGIS 3.26, no c++
> [0] , no pyqgis [1]. It is a bit unfortunate. Any chance these are
> updated, please?
>
> Thanks.
>
> Regards,
>
> Harrissou
>
>
> [0] https://api.qgis.org/api/3.26
>
> [1] https://qgis.org/pyqgis/3.26
>
> ___
> 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


[QGIS-Developer] No API documentation for QGIS 3.26

2022-08-08 Thread Delaz J via QGIS-Developer

Hi,

Just to mention that there is no API documentation for QGIS 3.26, no c++ 
[0] , no pyqgis [1]. It is a bit unfortunate. Any chance these are 
updated, please?


Thanks.

Regards,

Harrissou


[0] https://api.qgis.org/api/3.26

[1] https://qgis.org/pyqgis/3.26

___
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] Time for db manager to become an "opt-in" plugin?

2022-08-08 Thread Alexandre Neto via QGIS-Developer
The link...


https://docs.google.com/spreadsheets/d/1VyC_kYJU3qmWrzXzjeZuHGBjwE6O2lPov_c0LnO-AUA/edit?usp=sharing

Alexandre Neto

A sábado, 6/08/2022, 21:08, Alexandre Neto  escreveu:

> Hi,
>
> Sorry for the long waiting. I have made a functionality matrix for db
> manager and possible alternatives. I am not sure if all is correct so
> please feel free to edit or comment.
>
> After your edits I will create the migragion feature requests.
>
> Best regards,
>
> Alexandre Neto
>
> A segunda, 11/07/2022, 08:11, Alexandre Neto 
> escreveu:
>
>> Hi Nyall,
>>
>> A segunda, 11/07/2022, 00:47, Nyall Dawson 
>> escreveu:
>>
>>>
>>> I wonder if you'd be willing to lead an effort to document the missing
>>> functionality from dbmanager, and file QGIS tickets for these and
>>> assign them to a new project in the QGIS github for "deprecating db
>>> manager"?
>>
>>
>> Sure I will! I am on vacations, but next week I will start working on it.
>>
>> Thanks!
>>
>> Alexandre
>>
>
___
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