Re: [Qgis-user] Labeling: Allow HTML Formatting, text-size and map units

2024-05-16 Per discussione Thomas Schüttenberg via QGIS-User
Hi Chris,

yes I tried that. Any css-unit I could think of as well as em, % and code-words 
(large). But only pt resulted in a visible change on the canvas.

Not sure if it is just not implemented or if it is a bug.

Thomas

> chris hermansen  hat am 15.05.2024 21:00 CEST 
> geschrieben:
> 
> 
> Thomas and list,
> 
> 
> On Wed, May 15, 2024 at 7:20 AM Thomas Schüttenberg via QGIS-User 
>  wrote:
> > Ha!
> >  I found an other way around to do the trick, suitable for my use case at 
> > least:
> >  
> >  1) increasing the (overall) text size setting on the text tab by 2/3
> >  2) putting only the attributes/text strings of the second and following 
> > lines between ... tags, which renders them about 2/3 smaler, 
> > i.e. same as before. 
> >  
> >  The (reverse) result is a multi line label with the first line emphazised 
> > by its larger size! ;-)
> >  
> >  "Bezeichnung" || 'D ' || round("Deckelhohe",2) || 
> > 'S ' || round( "Sohlhohe" ,2) || ''
> > 
> In your first note you mentioned:
> 
> > But only pt (points) seams to work as the unit in this place, which gives a 
> > fixed size throughout all scales and does not respect the behavior of the 
> > map units with maximum scale setting.
> 
> I suppose you tried style="font-size: 75%;" and maybe style="font-size: 
> 0.75em;", and they did not work?
> 
> I wonder if, besides ..., you might have tried ...?
> --
> 
> Chris Hermansen · clhermansen "at" gmail "dot" com
> 
> C'est ma façon de parler.
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Georeferencing dxf file in QGIS

2024-05-15 Per discussione Thomas Schüttenberg via QGIS-User
Hi Linda,

have you tried the QGIS plugin "Vector Bender"?
https://plugins.qgis.org/plugins/VectorBender/
https://github.com/olivierdalang/VectorBender/blob/master/README.md

Thomas


> Linda Boisvert via QGIS-User  hat am 15.05.2024 
> 03:02 CEST geschrieben:
> 
> 
> Thank you Richard. Your suggestion was a step in the right direction.
> 
> I had to import using the add vector layer then export as an ESRI shapefile 
> and add the shapefile layer. That put all the features from the multiple dxf 
> file layers on one layer and I was able to move the design. But it is 
> important the keep the dxf layers separate and move the whole group of layers 
> at once to maintain the relationship.
> 
> 
> On Tue, May 14, 2024, 2:26 PM Richard Greenwood  
> wrote:
> > You can just use the QGIS Move Feature tool, possibly in conjunction with 
> > the Rotate Feature and/or Scale Feature tools in the advanced digitizing 
> > toolbar.
> >   1. Assign a coordinate system to the DXF layer. If you don't know the 
> > coordinate system, or if the DXF file doesn't have one, assign the 
> > coordinate system of your reference layer (your aerial photography)
> >   2. Make your DXF file editable. Depending on how you imported it you may 
> > be able to make it editable, or you may need to copy all of the features to 
> > an editable work layer.
> >   3. Select all of the features, pick the Move Feature tool, pick a source 
> > point on a corner of the building, pick a destination point on the 
> > corresponding corner in your reference layer. (this takes some serious 
> > panning and zooming!)
> >   4. With all of the features still selected, pick the Rotate Feature tool, 
> > while holding the Control key click the building corner to fix the rotation 
> > base point, then click two more points to define the rotation angle.
> >   5. You may need to scale it e.g. convert feet to meters. If so, pick the 
> > Scale Feature tool, hold the Control key and click a base point, then two 
> > more points to resize all of the features.
> > The move, rotate and scale steps are performing an affine transformation 
> > which should provide reasonable results over small areas if both the DXF 
> > and reference layer are in projected coordinate systems, ideally local 
> > projected coordinate systems like State Plane or UTM, and not Web Mercator.
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > On Tue, May 14, 2024 at 3:00 PM Linda Boisvert via QGIS-User 
> >  wrote:
> > > Hello, 
> > > 
> > > I have been trying to georeference a dxf file created by a solar design 
> > > software. 
> > > 
> > > I can import the file without issues but the design sits in the middle of 
> > > the Pacific Ocean. I have georeferenced rasters before but I can't get 
> > > this dxf file to budge.
> > > 
> > > I have tried many of the suggestions I have found online for 
> > > georeferencing the dxf file. 
> > > 
> > > I have tried to move the design using QAD and QAD did not find objects 
> > > when I tried to select the design or any single line. 
> > > 
> > > I imported the file into LibreCAD and the file worked fine in that 
> > > software.
> > > 
> > > I imported the file into ArcGIS and I could not see the lines of the dxf 
> > > file. 
> > > 
> > > I have attached a test dxf if someone wants to try it out and find a 
> > > solution. The building is the Eugene Brucker Education Center 4100 Normal 
> > > Street San Diego, CA 92103.
> > > 
> > > Does anyone have any suggestions for georeferencing this file or any idea 
> > > what the issue may be?
> > > 
> > > 
> > > 
> > > 
> > > --
> > > 
> > > Sincerely,
> > > Linda Boisvert
> > > ___
> > >  QGIS-User mailing list
> > >  QGIS-User@lists.osgeo.org
> > >  List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> > >  Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> > > 
> > 
> > 
> > 
> > --
> > 
> > Richard W. Greenwood
> > www.greenwoodmap.com (http://www.greenwoodmap.com)
> ___
> QGIS-User mailing list
> QGIS-User@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Labeling: Allow HTML Formatting, text-size and map units

2024-05-15 Per discussione Thomas Schüttenberg via QGIS-User
Ha!
I found an other way around to do the trick, suitable for my use case at least:

1) increasing the (overall) text size setting on the text tab by 2/3
2) putting only the attributes/text strings of the second and following lines 
between ... tags, which renders them about 2/3 smaler, i.e. same as 
before. 

The (reverse) result is a multi line label with the first line emphazised by 
its larger size! ;-)

"Bezeichnung" || 'D ' || round("Deckelhohe",2) || 'S 
' || round( "Sohlhohe" ,2) || ''

happy QGISing everyone!
Thomas


> Thomas Schüttenberg via QGIS-User  hat am 
> 15.05.2024 15:04 CEST geschrieben:
> 
>  
> Hi Stefan,
> thanks for the hint.
> The size value can be made variable (as visible in the expression builder 
> preview), but on the canvas there is yet no dynamic change what so ever.  :-/
> 
> Best regards
> Thomas
> 
> 
> > Stefan Giese (WhereGroup) via QGIS-User  hat am 
> > 15.05.2024 10:24 CEST geschrieben:
> > 
> >  
> > Hi Thomas,
> > 
> > you can try to involve the map_scale variable into a dynamic size of the 
> > HTML Label, something like:
> > 
> > with_variable('fs', 25000/@map_scale,
> >    format(
> >       '%2',
> >   @fs , title( "Name" )))
> > 
> > Best regards
> > 
> > Stefan
> > 
> > Am 15.05.2024 um 09:13 schrieb Thomas Schüttenberg via QGIS-User:
> > > Hi there!
> > >
> > > I am just playing arund with html enhanced labeling, using the option 
> > > "Allow HTML Formatting" on the text tab 
> > > (https://docs.qgis.org/3.34/en/docs/user_manual/style_library/label_settings.html#text-tab).
> > >
> > > Now I wonder how/if it is possible to override the text-size in such a 
> > > manner, that my label as a whole is still scale dependend and is 
> > > respecting the given map units including the minimum and maximum scale 
> > > (https://docs.qgis.org/3.34/en/docs/user_manual/introduction/general_tools.html#unit-selector)?
> > >
> > > Imagine you have a multi line label with the text size set to 2 meters 
> > > map units and a maximum scale at 1:5000.
> > > Now the first line should be double in text size and therefore I use 
> > > something like style="font-size:20pt" (see example in manual above).
> > >
> > > But only pt (points) seams to work as the unit in this place, which gives 
> > > a fixed size throughout all scales and does not respect the behavior of 
> > > the map units with maximum scale setting.
> > >
> > > Does anyone know a trick to achieve this anyhow?
> > >
> > > All the Best!
> > > Thomas
> > > ___
> > > QGIS-User mailing list
> > > QGIS-User@lists.osgeo.org
> > > List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> > > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> > >
> > -- 
> > Mit freundlichen Grüßen
> > Stefan Giese
> > Projektleiter/Consultant
> > *
> > Aufwind durch Wissen!
> > Web-Seminare und Online-Schulungen
> > bei der www.foss-academy.com
> > *
> > WhereGroup GmbH
> > Schwimmbadstr. 2
> > 79100 Freiburg
> > Germany
> > 
> > Tel.: +49 (0)761 / 519 102 - 61
> > Fax: +49 (0)761 / 519 102 - 11
> > 
> > stefan.gi...@wheregroup.com
> > www.wheregroup.com
> > Geschäftsführer:
> > Olaf Knopp, Peter Stamm
> > Amtsgericht Bonn, HRB 9885
> > 
> > 
> > ___
> > QGIS-User mailing list
> > QGIS-User@lists.osgeo.org
> > List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> ___
> QGIS-User mailing list
> QGIS-User@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Labeling: Allow HTML Formatting, text-size and map units

2024-05-15 Per discussione Thomas Schüttenberg via QGIS-User
Hi Stefan,
thanks for the hint.
The size value can be made variable (as visible in the expression builder 
preview), but on the canvas there is yet no dynamic change what so ever.  :-/

Best regards
Thomas


> Stefan Giese (WhereGroup) via QGIS-User  hat am 
> 15.05.2024 10:24 CEST geschrieben:
> 
>  
> Hi Thomas,
> 
> you can try to involve the map_scale variable into a dynamic size of the 
> HTML Label, something like:
> 
> with_variable('fs', 25000/@map_scale,
>    format(
>       '%2',
>   @fs , title( "Name" )))
> 
> Best regards
> 
> Stefan
> 
> Am 15.05.2024 um 09:13 schrieb Thomas Schüttenberg via QGIS-User:
> > Hi there!
> >
> > I am just playing arund with html enhanced labeling, using the option 
> > "Allow HTML Formatting" on the text tab 
> > (https://docs.qgis.org/3.34/en/docs/user_manual/style_library/label_settings.html#text-tab).
> >
> > Now I wonder how/if it is possible to override the text-size in such a 
> > manner, that my label as a whole is still scale dependend and is respecting 
> > the given map units including the minimum and maximum scale 
> > (https://docs.qgis.org/3.34/en/docs/user_manual/introduction/general_tools.html#unit-selector)?
> >
> > Imagine you have a multi line label with the text size set to 2 meters map 
> > units and a maximum scale at 1:5000.
> > Now the first line should be double in text size and therefore I use 
> > something like style="font-size:20pt" (see example in manual above).
> >
> > But only pt (points) seams to work as the unit in this place, which gives a 
> > fixed size throughout all scales and does not respect the behavior of the 
> > map units with maximum scale setting.
> >
> > Does anyone know a trick to achieve this anyhow?
> >
> > All the Best!
> > Thomas
> > ___
> > QGIS-User mailing list
> > QGIS-User@lists.osgeo.org
> > List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> >
> -- 
> Mit freundlichen Grüßen
> Stefan Giese
> Projektleiter/Consultant
> *
> Aufwind durch Wissen!
> Web-Seminare und Online-Schulungen
> bei der www.foss-academy.com
> *
> WhereGroup GmbH
> Schwimmbadstr. 2
> 79100 Freiburg
> Germany
> 
> Tel.: +49 (0)761 / 519 102 - 61
> Fax: +49 (0)761 / 519 102 - 11
> 
> stefan.gi...@wheregroup.com
> www.wheregroup.com
> Geschäftsführer:
> Olaf Knopp, Peter Stamm
> Amtsgericht Bonn, HRB 9885
> 
> 
> ___
> QGIS-User mailing list
> QGIS-User@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] Labeling: Allow HTML Formatting, text-size and map units

2024-05-15 Per discussione Thomas Schüttenberg via QGIS-User
Hi there!

I am just playing arund with html enhanced labeling, using the option "Allow 
HTML Formatting" on the text tab 
(https://docs.qgis.org/3.34/en/docs/user_manual/style_library/label_settings.html#text-tab).

Now I wonder how/if it is possible to override the text-size in such a manner, 
that my label as a whole is still scale dependend and is respecting the given 
map units including the minimum and maximum scale 
(https://docs.qgis.org/3.34/en/docs/user_manual/introduction/general_tools.html#unit-selector)?

Imagine you have a multi line label with the text size set to 2 meters map 
units and a maximum scale at 1:5000.
Now the first line should be double in text size and therefore I use something 
like style="font-size:20pt" (see example in manual above).

But only pt (points) seams to work as the unit in this place, which gives a 
fixed size throughout all scales and does not respect the behavior of the map 
units with maximum scale setting. 

Does anyone know a trick to achieve this anyhow?

All the Best!
Thomas
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS 3.34 and QGZ on network drives

2024-05-03 Per discussione Thomas Schüttenberg via QGIS-User
Hi Andrea,

thanks for pointing me to libzip.
In addition to the mentioned error message in the QGIS log panel "error code 
28" is displayed. A web search revealed, that this might refer to 
[ZIP_ER_OPNOTSUPP] Operation not supported 
(https://libzip.org/documentation/zip_errors.html).

Checking for related libzip issues I get this one 
https://github.com/nih-at/libzip/issues/382 and maybe this 
https://github.com/nih-at/libzip/issues/381 - but this is beyond my 
understanding.

The only other or older libzip version available in osgeo4w is v1.7.3. 
Exchanging the current bin/zipp.dll (libzip v1.10.1) from the QGIS 3.34.6 
install with a zip.dll of a QGIS 3.34.5 install (or older), which should be 
v1.7.3, does solve the problem (for now). - So the problem lies within the 
libzip 1.10.1 version.

But the upstream issue remains and will re-occur in upcoming QGIS releases. So 
far I have no idea on how to support the fixing (apart from contributing to 
#382).

All the best
Thomas


> Andrea Giudiceandrea via QGIS-User  hat am 
> 02.05.2024 21:52 CEST geschrieben:
> 
>  
> > Thomas Schüttenberg thomas at qgis.de
> > Thu May 2 07:12:35 PDT 2024
> > All findings described below refer to QGIS 3.34.6. 
> > I am affraid it is connected to the extensive updates liste here 
> > https://lists.osgeo.org/pipermail/qgis-user/2024-April/054334.html ?
> 
> > Thu May 2 05:44:11 PDT 2024
> > "Unable to unzip file ''" is displayed and the 
> > project does not open.
> 
> 
> 
> Hi Thomas,
> AFAIK the error message is displayed when the zip_open function of the 
> libzip library, used by QGIS, fails to open the .qgz project file.
> Are there other related error messages in the Log Messages panel?
> 
> Since you think the issue may be related to the recent OSGeo4W packages 
> update, have you tried to downgrade the libzip library using the OSGeo4W 
> Setup program to the previous version?
> 
> Best regards.
> 
> Andrea
> ___
> QGIS-User mailing list
> QGIS-User@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS 3.34 and QGZ on network drives

2024-05-02 Per discussione Thomas Schüttenberg via QGIS-User
Update on "Unable to unzip file ''": This issue does 
not appear with QGIS 3.34.5.

All findings described below refer to QGIS 3.34.6. 
I am affraid it is connected to the extensive updates liste here 
https://lists.osgeo.org/pipermail/qgis-user/2024-April/054334.html ?

Anyway, still interested to hear, if someone experienced something similar.
All the best
Thomas

> Thomas Schüttenberg via QGIS-User  hat am 
> 02.05.2024 14:44 CEST geschrieben:
> 
>  
> Hello everyone,
> 
> I am currently preparing the rollout of QGIS 3.34.6 for our administration 
> and have encountered a strange and very inconsistent behaviour when opening 
> project files from our network drives (Windows):
> 
> When double-clicking on such a project tile on the welcome page, the error 
> message. 
> "Unable to unzip file ''" is displayed and the 
> project does not open.
> 
> If you try it via the selection in the menu 'Project - Open recent' you get 
> the same result.
> 
> If you use 'Open project' (Ctrl+O) to open the Windows File Explorer and 
> select the QGZ in question, it works. 
> 
> If you close the project and then click again on its 'Recent projects' entry 
> on the welcome page or in the 'Recently used' menu, this also works now.
> 
> However, if you wait a while (approx. 1-2 minutes) before clicking on a 
> recent link, it does not work any more!
> The time can also elapse while the project is open, i.e. closing the project 
> and then clicking on the recent link does not work (any more).
> 
> First I thought, that saving or re-saving a QGZ with QGIS 3.34 would solve 
> the problem, but today I encounter the same phenomenon on 3.34-QGZs, which I 
> saved a few days ago.
> 
> Furthermore, if the link to a project on the welcome page does not work and I 
> then touch (i.e. single click) this qgz-file via the Windows file explorer, 
> the recent link in QGIS works afterwards.
> 
> User profiles or age or version of the QGZ do not seem to play a role. All of 
> this cannot be reproduced with QGIS 3.28 using the same project-files.
> 
> So, there seems to be a strange interference between QGIS 3.34 and the access 
> to our network drives, which could become quite a blocker for our rollout. 
> Only local QGZ are not affected.
> What do you think, has anyone heard of similar phenomena? I am grateful for 
> any ideas!
> 
> Best regards
> Thomas
> 
> -- 
> QGIS-DE e.V. | https://qgis.de | tho...@qgis.de
> ___
> QGIS-User mailing list
> QGIS-User@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

-- 
QGIS-DE e.V. | https://qgis.de | tho...@qgis.de
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] QGIS 3.34 and QGZ on network drives

2024-05-02 Per discussione Thomas Schüttenberg via QGIS-User
Hello everyone,

I am currently preparing the rollout of QGIS 3.34.6 for our administration and 
have encountered a strange and very inconsistent behaviour when opening project 
files from our network drives (Windows):

When double-clicking on such a project tile on the welcome page, the error 
message. 
"Unable to unzip file ''" is displayed and the 
project does not open.

If you try it via the selection in the menu 'Project - Open recent' you get the 
same result.

If you use 'Open project' (Ctrl+O) to open the Windows File Explorer and select 
the QGZ in question, it works. 

If you close the project and then click again on its 'Recent projects' entry on 
the welcome page or in the 'Recently used' menu, this also works now.

However, if you wait a while (approx. 1-2 minutes) before clicking on a recent 
link, it does not work any more!
The time can also elapse while the project is open, i.e. closing the project 
and then clicking on the recent link does not work (any more).

First I thought, that saving or re-saving a QGZ with QGIS 3.34 would solve the 
problem, but today I encounter the same phenomenon on 3.34-QGZs, which I saved 
a few days ago.

Furthermore, if the link to a project on the welcome page does not work and I 
then touch (i.e. single click) this qgz-file via the Windows file explorer, the 
recent link in QGIS works afterwards.

User profiles or age or version of the QGZ do not seem to play a role. All of 
this cannot be reproduced with QGIS 3.28 using the same project-files.

So, there seems to be a strange interference between QGIS 3.34 and the access 
to our network drives, which could become quite a blocker for our rollout. Only 
local QGZ are not affected.
What do you think, has anyone heard of similar phenomena? I am grateful for any 
ideas!

Best regards
Thomas

-- 
QGIS-DE e.V. | https://qgis.de | tho...@qgis.de
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] edit QGIS3.ini with startup.py

2022-12-05 Per discussione Thomas Schüttenberg via Qgis-user
Hi Stefan,

that's great! And even more simple/clean/save than I imagined.

Thanks very much, best regards
Thomas


> Stefan Giese (WhereGroup)  hat am 05.12.2022 
> 14:25 CET geschrieben:
> 
> 
> Hi Thomas,
> you can clear the section before adding the new values with:
> QgsSettings().remove('svg/searchPathsForSVG')
> and then add your values
> Best regards
> Stefan
> Mit freundlichen Grüßen
> Stefan Giese
> Projektleiter/Consultant
> -
> Aufwind durch Wissen!
> Jetzt neu: Web-Seminare und Online-Schulungen
> bei der www.foss-academy.com (http://www.foss-academy.com)
> -
> WhereGroup GmbH
> Schwimmbadstr. 2
> 79100 Freiburg
> Germany
> 
> Tel.: +49 (0)761 / 519 102 - 61
> Fax: +49 (0)761 / 519 102 - 11
> 
> stefan.gi...@wheregroup.com
> www.wheregroup.com (http://www.wheregroup.com)
> Geschäftsführer:
> Olaf Knopp, Peter Stamm
> Amtsgericht Bonn, HRB 9885
> 
> Am 05.12.2022 um 13:40 schrieb Thomas Schüttenberg via Qgis-user:
> 
> > Hi there!
> > Because our servers have moved, the search paths for SVGs have changed. 
> > Unfortunately what we didn't think about before is that these old, wrong 
> > paths are (still) in the QGIS3.ini of the local user profiles and now cause 
> > eternal delays at startup because of their unreachability.
> > 
> > We already use a startup.py to add file paths in centralized manner, like 
> > this 
> > 
> > gdi_global_svg = 'L:/Daten/geoservice/config/qgis_global_settings/svg'
> > svg_paths = QgsSettings().value('svg/searchPathsForSVG')
> > if gdi_global_svg in svg_paths:
> > pass
> > else:
> > svg_paths.append(gdi_global_svg)
> > QgsSettings().setValue('svg/searchPathsForSVG', svg_paths)
> > 
> > Despite my still lacking Python knowledge, I thought one could easily 
> > include a corresponding fix (e.g. search and replace) in the startup.py 
> > script... 
> > I am still googling but maybe someone could help me with this, please? That 
> > would save my day!
> > 
> > Best regards
> > Thomas
> > ___
> > Qgis-user mailing list
> > Qgis-user@lists.osgeo.org
> > List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> > 
> -- 
> Mit freundlichen Grüßen
> Stefan Giese
> Projektleiter/Consultant
> -
> Aufwind durch Wissen!
> Jetzt neu: Web-Seminare und Online-Schulungen
> bei der www.foss-academy.com (http://www.foss-academy.com)
> -
> WhereGroup GmbH
> Schwimmbadstr. 2
> 79100 Freiburg
> Germany
> 
> Tel.: +49 (0)761 / 519 102 - 61
> Fax: +49 (0)761 / 519 102 - 11
> 
> stefan.gi...@wheregroup.com
> www.wheregroup.com (http://www.wheregroup.com)
> Geschäftsführer:
> Olaf Knopp, Peter Stamm
> Amtsgericht Bonn, HRB 9885
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] edit QGIS3.ini with startup.py

2022-12-05 Per discussione Thomas Schüttenberg via Qgis-user
Hi there!
Because our servers have moved, the search paths for SVGs have changed. 
Unfortunately what we didn't think about before is that these old, wrong paths 
are (still) in the QGIS3.ini of the local user profiles and now cause eternal 
delays at startup because of their unreachability.

We already use a startup.py to add file paths in centralized manner, like this 

gdi_global_svg = 'L:/Daten/geoservice/config/qgis_global_settings/svg'
svg_paths = QgsSettings().value('svg/searchPathsForSVG')
if gdi_global_svg in svg_paths:
pass
else:
svg_paths.append(gdi_global_svg)
QgsSettings().setValue('svg/searchPathsForSVG', svg_paths)

Despite my still lacking Python knowledge, I thought one could easily include a 
corresponding fix (e.g. search and replace) in the startup.py script... 
I am still googling but maybe someone could help me with this, please? That 
would save my day!

Best regards
Thomas
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] display welcome page again

2022-04-07 Per discussione Thomas Schüttenberg via Qgis-user
OK, replying to myself, I knew it was possible ;-)

Hitting 'Close' in the menu 'Project' not only closes the current project file 
[0] but consequently also displays the welcome page, i.e. the recent projects 
and project templates tabs!
And of course one can put a custom keyboard shortcut to this menu action.

[0] 
https://docs.qgis.org/3.22/en/docs/user_manual/introduction/qgis_gui.html#project
[1] 
https://docs.qgis.org/3.22/en/docs/user_manual/introduction/qgis_configuration.html#shortcuts

Cheers!
Thomas


> Thomas Schüttenberg via Qgis-user  hat am 
> 07.04.2022 13:54 geschrieben:
> 
>  
> Hi there,
> 
> I wonder, if there is a way (a key combination or menu) to display the 
> welcome page again after opening/starting a project? Is it possible to make 
> it show up again from inside QGIS or just only at program start?
> 
> I was not able to find such a clue anywhere so far, but would love to use the 
> project templates tab more, especially as a map using starting point for less 
> experienced users.
> 
> thanks a lot,
> kind regards
> Thomas
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] display welcome page again

2022-04-07 Per discussione Thomas Schüttenberg via Qgis-user
Hi there,

I wonder, if there is a way (a key combination or menu) to display the welcome 
page again after opening/starting a project? Is it possible to make it show up 
again from inside QGIS or just only at program start?

I was not able to find such a clue anywhere so far, but would love to use the 
project templates tab more, especially as a map using starting point for less 
experienced users.

thanks a lot,
kind regards
Thomas
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user