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

2024-05-16 Thread 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 Thread 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 Thread 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 Thread 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 Thread 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 Thread 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 Thread 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 Thread 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 Thread 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 Thread 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 Thread 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 Thread 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


Re: [Qgis-user] startup.py on network folder

2021-12-08 Thread Thomas Schüttenberg
Hi,

another work around is explained here: 
https://gis.stackexchange.com/questions/319224/central-deployment-of-startup-py-in-qgis/319225

Regards
Thomas

> Wolfgang Meinolf  hat am 06.12.2021 18:02 
> geschrieben:
> 
> 
> Hi Stefan,
> thks for the fast response. That’s something, I can build on.
> Br
> Wolfgang
> 
> Von: Stefan Giese (WhereGroup)  
>  Gesendet: Montag, 6. Dezember 2021 17:35
>  An: Wolfgang Meinolf ; qgis-user 
> 
>  Betreff: Re: [Qgis-user] startup.py on network folder
> 
> Hi Wolfgang,
> you can start QGIS with a command line option --codefollowed by the path and 
> scriptname, for example in a BAT file
> Best regards
> stefan
> Am 06.12.2021 um 17:31 schrieb Wolfgang Meinolf:
> > Hi,
> > I like to implement a centrally controlled QGIS environment for our 
> > workforce using startup.py. Is there any trick, to put startup.py on a 
> > network folder instead the user’s QGIS folder i.e. under Windows 
> > %user%\AppData\Roaming\QGIS\QGIS3?
> > 
> > PYQGIS_STARTUP environment variable to change the location does 
> > unfortunately not work.
> > 
> > Thanks
> > Wolfgang
> > 
> >  
> > 
> > ___
> > 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: Webinare und Online-Schulungen
> bei der www.foss-academy.com (http://www.foss-academy.com)
> --
>  
> WhereGroup GmbH
> Schwimmbadstr. 2
> 79100 Freiburg
> Germany
>  
> Fon: +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 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] project templates

2021-10-25 Thread Thomas Schüttenberg
Hi There!

I like the handy feature to present/deliver project files as templates on the 
welcome page at QGIS startup [see 0,1] and I do so via a centralized 
projectTemplateDir. My idea is to have a kind of map switcher pane, like most 
webgis clients offer.

Now I wonder, if there are no thumbnails implemented like the recent projects 
tab has. The configuration of the latter can be found in QGIS.ini, but I can't 
find anything similar for project templates. 

Though I'm aware of the menu 'Project/new from template' I would also like to 
have a button to call up this project templates frame (or the welcome page) 
again, after it has vanished by loading/beginning a project. 

Maybe someone of you has similar ideas or experiences or even a hint for a 
minimalistic python plugin for this? 

[0] 
https://docs.qgis.org/3.16/en/docs/user_manual/introduction/qgis_configuration.html#general-settings
[1] 
https://docs.qgis.org/3.16/en/docs/user_manual/introduction/project_files.html

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 Server Log Stderr

2021-07-06 Thread Thomas Schüttenberg
Hi Björn,
thanks for investigating, but no, I still don't get this. 
With 
ErrorLog "${STACK}/logs/error.log"
in httpd.conf (plus LogLevel info to make sure there will be something to log) 
and
FcgidInitialEnv QGIS_SERVER_LOG_STDERR 1
plus FcgidInitialEnv QGIS_SERVER_LOG_LEVEL 0
in the QGIS server vHost.conf, there is no log output from QGIS server in 
error.log while restarting the Apache. I would expect the QGIS server 
summary[1] like I see in the QGIS_SERVER_LOG_FILE, not only the Apache restart 
lines.

You received the STDERR log on Ubuntu not Windows, right?
I think I stick with QGIS_SERVER_LOG_FILE for now.

[1] 
https://docs.qgis.org/3.16/en/docs/server_manual/config.html#settings-summary



> pathmapper  hat am 05.07.2021 07:01 geschrieben:
> 
>  
> Hmm, with QGIS_SERVER_LOG_STDERR 1 it works as long as I use the 
> standard
> 
> ErrorLog ${APACHE_LOG_DIR}/error.log
> 
> But if I change it to
> 
> ErrorLog ${APACHE_LOG_DIR}/qgisserver.log
> 
> a file ${APACHE_LOG_DIR}/qgisserver.log is created but the QGIS server 
> logs are still saved in ${APACHE_LOG_DIR}/error.log
> 
> Thomas, is this the same behaviour you are seeing?
> 
> 
> On 02.07.2021 14:43, thomas wrote:
> > Hi Björn,
> > 
> > Am 02.07.21 um 10:58 schrieb pathmapper:
> >> Hi Thomas,
> >> 
> >> is QGIS_SERVER_LOG_FILE still set in your conf?
> >> 
> >> Asking because QGIS_SERVER_LOG_STDERR has no effect when 
> >> QGIS_SERVER_LOG_FILE is set.
> >> 
> >> Maybe doublecheck that you restarted Apache after these changes :)
> > 
> > Sure, quadruple checked all that ;)
> > 
> >> 
> >> With QGIS server 3.18.1 on Ubuntu LTR it's working as expected.
> > 
> > After some research[1] I already suspected it to be a windows specific
> > issue... :-/
> > 
> > Or I'm making wrong assumptions about what stderr is, although[2]:
> > "... The error log will also contain debugging output from CGI
> > scripts. Any information written to stderr by a CGI script will be
> > copied directly to the error log."
> > 
> > [1]
> > http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-QGIS-server-landing-page-when-running-as-fastcgi-tp5456241p5456373.html
> > [2] https://httpd.apache.org/docs/2.4/logs.html#errorlog
> > 
> > Cheers
> > Thomas
> > 
> > 
> >> 
> >> Cheers,
> >> Bjoern
> >> 
> >> On 01.07.2021 15:11, Thomas Schüttenberg wrote:
> >>> Hi there!
> >>> 
> >>> Because file logging support with QGIS_SERVER_LOG_FILE is deprecated
> >>> since QGIS 3.4. I just tried to switch to QGIS_SERVER_LOG_STDERR 1 as
> >>> described in the manual[1].
> >>> 
> >>> Nevertheless the standard error log file I defined in my Apache
> >>> configuration stays silent (Loglevel 0).
> >>> So either I miss something in my config or QGIS_SERVER_LOG_STDERR 
> >>> does
> >>> not work here.
> >>> 
> >>> My QGIS server 3.18.2 and 3.16. are installed on a windows server
> >>> 2019, btw. Mayby anyone of you is able to help me with their
> >>> experience? Thanks!
> >>> 
> >>> [1] https://docs.qgis.org/3.16/en/docs/server_manual/config.html
> >>> 
> >>> Cheers 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] QGIS Server Log Stderr

2021-07-01 Thread Thomas Schüttenberg
Hi there!

Because file logging support with QGIS_SERVER_LOG_FILE is deprecated since QGIS 
3.4. I just tried to switch to QGIS_SERVER_LOG_STDERR 1 as described in the 
manual[1].

Nevertheless the standard error log file I defined in my Apache configuration 
stays silent (Loglevel 0).
So either I miss something in my config or QGIS_SERVER_LOG_STDERR does not work 
here. 

My QGIS server 3.18.2 and 3.16. are installed on a windows server 2019, btw. 
Mayby anyone of you is able to help me with their experience? Thanks!

[1] https://docs.qgis.org/3.16/en/docs/server_manual/config.html

Cheers 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 Server error log - Solved

2020-12-17 Thread Thomas Schüttenberg
OK, what realy fixed the issue of disabled python support in my qgis server was 
the additional(!) installation of the corresponding qgis package from the 
OSGeo4W installer. (As stated inconspicuously in the docs 
https://docs.qgis.org/3.16/en/docs/server_manual/getting_started.html#installation-on-windows)

Although I would have sworen I ticked that package also this time, I obviousely 
didn't.

never mind, cheers!
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] QGIS Server error log

2020-12-11 Thread Thomas Schüttenberg
...some further investigations on this:
Checking for 'sip' in the OSGeo4W installer I only found the lib sip-qt5 
(v4.19.14-1) already installed.

Regarding the ModuleNotFoundError: No module named 'qgis' (the second one): 
Seems there is a misinterpretation of some of the Python Paths, e.g. 
'D:\\gdi\\qgisServer\x07pps\\qgis/./python' IMHO should be like 
'D:\\gdi\\qgisServer\\apps\\qgis/./python'

This path origiantes from the environment variable PYTHONHOME 
"D:\gdi\qgisServer\apps\Python37" in %OSGEO4W%\httpd.d\httpd_qgis.conf
Although the backslashes become escaped with '\' a misinterpretation of '\a' 
(at the beginning of 'apps') happens.

Simply exchanging '\' with '/' in PYTHONHOME modifies the log displayed path to 
'D:/gdi/qgisServer/apps/qgis/./python', but the python support is still 
disabled. The remaining ModuleNotFoundError[ is now]: No module named 
'qgis.PyQt'

How to find/set the valid python path? 

BTW, subsequent installation of lib pyqt5 did not fix the issue.

Still no clue about python support for QGIS server, but now it's weekend!


> Thomas Schüttenberg  hat am 10.12.2020 16:22 geschrieben:
> 
>  
> Hi there!
> 
> Just set up a new QGIS Server 3.16.1 and although it is working I receive the 
> following error log (see below). Installation was done with OSGeo4W selecting 
> only the package qgis-server and auto resolving the dependencies. 
> Because disabled Python support is of course not appreciated, maybe someone 
> knows how to fix this?
> 
> Cheers!
> 
> 15:22:57 WARNING [3020]: Adding API Landing Page 
> 15:22:57 WARNING [3020]: Adding API OGC WFS3 (Draft) 
> 15:22:57 WARNING Python error[3020]: An error occurred during execution of 
> following code:
> os.environ['HOME']=os.environ['USERPROFILE']
> 
> 
> Traceback (most recent call last):
>   File "", line 1, in 
>   File "D:/gdi/qgisServer/apps/Python37\lib\os.py", line 678, in __getitem__
> raise KeyError(key) from None
> KeyError: 'USERPROFILE'
> 
> Python version:
> 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)]
> 
> QGIS version:
> 3.16.1-Hannover 'Hannover', b381a90dca
> 
> Python path:
> ['D:\\gdi\\qgisServer\\apps\\Python37', 
> 'D:\\gdi\\qgisServer\\apps\\Python37\\Scripts', 
> 'D:\\gdi\\qgisServer\\bin\\python37.zip', 
> 'D:\\gdi\\qgisServer\\apps\\Python37\\DLLs', 
> 'D:\\gdi\\qgisServer\\apps\\Python37\\lib', 
> 'D:\\gdi\\qgisServer\\apps\\qgis\\bin', 
> 'D:\\gdi\\qgisServer\\apps\\Python37\\lib\\site-packages']
> 15:22:57 WARNING Python error[3020]: Couldn't load SIP module.
> Python support will be disabled.
> 
> Traceback (most recent call last):
>   File "", line 1, in 
> ModuleNotFoundError: No module named 'qgis'
> 
> Python version:
> 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)]
> 
> QGIS version:
> 3.16.1-Hannover 'Hannover', b381a90dca
> 
> Python path:
> ['D:\\gdi\\qgisServer\x07pps\\qgis/./python', 
> 'D:\\gdi\\configurations\\profiles\\default/python', 
> 'D:/gdi/qgisServer/plugins', 
> 'D:\\gdi\\configurations\\profiles\\default/python/plugins', 
> 'D:\\gdi\\qgisServer\x07pps\\qgis/./python/plugins', 
> 'D:\\gdi\\qgisServer\\apps\\Python37', 
> 'D:\\gdi\\qgisServer\\apps\\Python37\\Scripts', 
> 'D:\\gdi\\qgisServer\\bin\\python37.zip', 
> 'D:\\gdi\\qgisServer\\apps\\Python37\\DLLs', 
> 'D:\\gdi\\qgisServer\\apps\\Python37\\lib', 
> 'D:\\gdi\\qgisServer\\apps\\qgis\\bin', 
> 'D:\\gdi\\qgisServer\\apps\\Python37\\lib\\site-packages']
> 15:22:57 WARNING Server[3020]: WMS capabilities document not found in cache
> 15:22:57 WARNING Server[3020]: Set WMS capabilities document in cache
___
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 Server error log

2020-12-10 Thread Thomas Schüttenberg
Hi there!

Just set up a new QGIS Server 3.16.1 and although it is working I receive the 
following error log (see below). Installation was done with OSGeo4W selecting 
only the package qgis-server and auto resolving the dependencies. 
Because disabled Python support is of course not appreciated, maybe someone 
knows how to fix this?

Cheers!

15:22:57 WARNING [3020]: Adding API Landing Page 
15:22:57 WARNING [3020]: Adding API OGC WFS3 (Draft) 
15:22:57 WARNING Python error[3020]: An error occurred during execution of 
following code:
os.environ['HOME']=os.environ['USERPROFILE']


Traceback (most recent call last):
  File "", line 1, in 
  File "D:/gdi/qgisServer/apps/Python37\lib\os.py", line 678, in __getitem__
raise KeyError(key) from None
KeyError: 'USERPROFILE'

Python version:
3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)]

QGIS version:
3.16.1-Hannover 'Hannover', b381a90dca

Python path:
['D:\\gdi\\qgisServer\\apps\\Python37', 
'D:\\gdi\\qgisServer\\apps\\Python37\\Scripts', 
'D:\\gdi\\qgisServer\\bin\\python37.zip', 
'D:\\gdi\\qgisServer\\apps\\Python37\\DLLs', 
'D:\\gdi\\qgisServer\\apps\\Python37\\lib', 
'D:\\gdi\\qgisServer\\apps\\qgis\\bin', 
'D:\\gdi\\qgisServer\\apps\\Python37\\lib\\site-packages']
15:22:57 WARNING Python error[3020]: Couldn't load SIP module.
Python support will be disabled.

Traceback (most recent call last):
  File "", line 1, in 
ModuleNotFoundError: No module named 'qgis'

Python version:
3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)]

QGIS version:
3.16.1-Hannover 'Hannover', b381a90dca

Python path:
['D:\\gdi\\qgisServer\x07pps\\qgis/./python', 
'D:\\gdi\\configurations\\profiles\\default/python', 
'D:/gdi/qgisServer/plugins', 
'D:\\gdi\\configurations\\profiles\\default/python/plugins', 
'D:\\gdi\\qgisServer\x07pps\\qgis/./python/plugins', 
'D:\\gdi\\qgisServer\\apps\\Python37', 
'D:\\gdi\\qgisServer\\apps\\Python37\\Scripts', 
'D:\\gdi\\qgisServer\\bin\\python37.zip', 
'D:\\gdi\\qgisServer\\apps\\Python37\\DLLs', 
'D:\\gdi\\qgisServer\\apps\\Python37\\lib', 
'D:\\gdi\\qgisServer\\apps\\qgis\\bin', 
'D:\\gdi\\qgisServer\\apps\\Python37\\lib\\site-packages']
15:22:57 WARNING Server[3020]: WMS capabilities document not found in cache
15:22:57 WARNING Server[3020]: Set WMS capabilities document in cache
___
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] Reading stuff on QGIS deployment

2020-07-29 Thread Thomas Schüttenberg
Hi all!

I have been dealing with the distribution of a uniform QGIS (LTR) version and a 
centralized maintenance of common settings in our administration for some time 
now. In the meantime, a fairly good, independent and pragmatic approach has 
emerged, which enables QGIS to be made available simultaneously as a central 
network installation and as a preconfigured installation package.

Maybe my approach offers one or the other helpful suggestion, so I tried to 
describe it for you on qgis.de:
https://qgis.de/doku.php?id=site:deployment:zentral_en

The instructions (in German and English) are packed with sources and context, 
to show that this work was made possible in particular by free and open 
resources (a.k.a. FOSS!) in a lively community. - Even if you're not a software 
engineer, reading documentation and issue comments really helps. ;-)

Many thanks to all, happy QGISing! - feedback appreciated
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] [QGIS-Developer] (how to) register gsb transformation in proj.db?

2020-06-05 Thread Thomas Schüttenberg

> Even Rouault  hat am 05.06.2020 11:53 geschrieben:
> 
> 
> On vendredi 5 juin 2020 11:13:09 CEST Thomas Schüttenberg wrote:
> I'm not super familiar with the QGIS details about the selection and 
> preference settings of transformations. I now that Nyall made a lot of 
> efforts to make this as smooth as possible (difficult challenge to have user 
> friendliness and accurate behaviour in that field!).

Very true!

> Looking at your record for minden.gsb, it uses a very large area of use. Once 
> integrated into EPSG, it will probably use a much smaller one fitted to the 
> grid extent, and I'm not sure how QGIS will react when zooming out 
> sufficiently so that the grid doesn't cover the displayed extent.
> You could simulate that by creating a new record into the area table which 
> uses the real extent of your grid

Yes, I already thought of that, too. Can the extend be derrived from a 
gsb-file? Otherwise I have to estimate.
___
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] (how to) register gsb transformation in proj.db?

2020-06-05 Thread Thomas Schüttenberg
Hi all!

Because I better should not roll out QGIS with the afore mentioned premanent 
ballpark-warning in place, I investigatetd further and stumbled across an 
"allowFallback"-setting:

By placing a default datum transformation in the settings/options.../CRS you 
get new entries in your QGIS3.ini [find it on win at %APPDATA%\QGIS\QGIS3\], 
which are the operation parameters themselve and a setting to allow the 
approximate “ballpark” transformation [...] between a source and destination 
CRS pair, in the case that the preferred coordinate operation fails".

[Projections]
EPSG%3A31467\EPSG%3A25832_allowFallback=true
EPSG%3A31467\EPSG%3A25832_coordinateOp="+proj=pipeline +step +inv +proj=tmerc 
+lat_0=0 +lon_0=9 +k=1 +x_0=350 +y_0=0 +ellps=bessel +step +proj=hgridshift 
+grids=Minden.gsb +step +proj=utm +zone=32 +ellps=GRS80"

This is also writen to any project file containing layers with the crs', 
covered by the default datum transformation. It appears within in the tag 
 and causes the warning to 
show up every time this project will be loaded, although the datum 
transformation is already working an no fallback seems necessary. 

If the _allowFallback=-setting in QGIS3.ini is (manually) edited to 'false', 
newly saved project files also contain  and 
the warning will not be displayed again on project load.

Reference to my quite hacky findings can be found in the QGIS Python API Doc, 
search for 'allowFallback': 
https://qgis.org/pyqgis/3.10/search.html?q=allowFallback
Some of the allowFallback stuff is labeled "New in version 3.12", however I 
currently investigate on 3.10.5-LTR. Might this indicate a backporting issue? 
(Otherwise, the implementation of my datum transformation very well might still 
be incomplete, don't know.)

Just wanted to inform you about my (current) workaround, any further hints are 
certainly appreciated.
Greetings!
Thomas

> Thomas Schüttenberg  hat am 04.06.2020 11:28 geschrieben:
> 
>  
> Hi Even,
> thank you! After the
> 
> INSERT INTO "grid_transformation" VALUES(
> 'PROJ','Minden','DHDN to ETRS89 (Minden)','DHDN to ETRS89 for City of 
> Minden.','For applications requiring an accuracy of 
> cm.','EPSG','9615','NTv2','EPSG','4313','EPSG','4258','EPSG','1625',NULL,'EPSG','8656','Latitude
>  and longitude difference 
> file','Minden.gsb',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0);
> 
> (adapting the BWTA2017 record) and restarting QGIS the transformation appears 
> in the Select Datum Transformations-dialog. It seems to work and the result 
> is visibly more accurate than the BETA2007.
> 
> But I get a waring everytime the transformation is applied or loaded:
> 
> An alternative, ballpark-only transform was used when transforming 
> coordinates between EPSG:31467 - DHDN / 3-degree Gauss-Kruger zone 3 and 
> EPSG:25832 - ETRS89 / UTM zone 32N. The results may not match those obtained 
> by using the preferred operation:
> +proj=pipeline +step +inv +proj=tmerc +lat_0=0 +lon_0=9 +k=1 +x_0=350 
> +y_0=0 +ellps=bessel +step +proj=hgridshift +grids=Minden.gsb +step +proj=utm 
> +zone=32 +ellps=GRS80
> Possibly an incorrect choice of operation was made for transformations 
> between these reference systems. Check the Project Properties and ensure that 
> the selected transform operations are applicable over the whole extent of the 
> current project.
> 
> (in German:
> Eine alternative ungenaue Transformaton wurde zur Koordinatentransformation 
> zwischen EPSG:31467 - DHDN / 3-degree Gauss-Kruger zone 3 und EPSG:25832 - 
> ETRS89 / UTM zone 32N. Die Ergebnisse könnten nicht mit denen der bevorzugten 
> Operation übereinstimmen. 
> Möglicherweise wurde eine falsche Operation zwischen den Referenzsystemen 
> gewählt. Bitte die Projekteigenschaften prüfen und sicherstellen das die 
> gewählten Transformationsoperationen auf das ganze Projektausmaß anwendbar 
> sind.)
> 
> Don't know what exactly this tries to tell me, but I think something is still 
> missing and so far I was not able to find a correct "operation" to point to 
> in proj.db.
> Or is it because of the area_of_use, which is far bigger than the grid 
> extend? Or the missing accuracy? - Sarching for ballpark I found this issue 
> #34983[1] but can't really say that I understand the comments.
> 
> [1] https://github.com/qgis/QGIS/issues/34983
> 
> Btw, certainly you are absolutely right regarding the publication with PROJ 
> and registration of our gsb-file and therefore I contacted the authors for 
> the nessesary informations...
> 
> Greetings
> Thomas
> 
> 
> > Even Rouault  hat am 3. Juni 2020 15:37 
> > geschrieben:
> > 
> > 
> > > Is it correct, that the tranformations in this dialog are read from
> > > \share\proj\proj.db and therefore t

Re: [Qgis-user] (how to) register gsb transformation in proj.db?

2020-06-04 Thread Thomas Schüttenberg
Hi Even,
thank you! After the

INSERT INTO "grid_transformation" VALUES(
'PROJ','Minden','DHDN to ETRS89 (Minden)','DHDN to ETRS89 for City of 
Minden.','For applications requiring an accuracy of 
cm.','EPSG','9615','NTv2','EPSG','4313','EPSG','4258','EPSG','1625',NULL,'EPSG','8656','Latitude
 and longitude difference 
file','Minden.gsb',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0);

(adapting the BWTA2017 record) and restarting QGIS the transformation appears 
in the Select Datum Transformations-dialog. It seems to work and the result is 
visibly more accurate than the BETA2007.

But I get a waring everytime the transformation is applied or loaded:

An alternative, ballpark-only transform was used when transforming coordinates 
between EPSG:31467 - DHDN / 3-degree Gauss-Kruger zone 3 and EPSG:25832 - 
ETRS89 / UTM zone 32N. The results may not match those obtained by using the 
preferred operation:
+proj=pipeline +step +inv +proj=tmerc +lat_0=0 +lon_0=9 +k=1 +x_0=350 
+y_0=0 +ellps=bessel +step +proj=hgridshift +grids=Minden.gsb +step +proj=utm 
+zone=32 +ellps=GRS80
Possibly an incorrect choice of operation was made for transformations between 
these reference systems. Check the Project Properties and ensure that the 
selected transform operations are applicable over the whole extent of the 
current project.

(in German:
Eine alternative ungenaue Transformaton wurde zur Koordinatentransformation 
zwischen EPSG:31467 - DHDN / 3-degree Gauss-Kruger zone 3 und EPSG:25832 - 
ETRS89 / UTM zone 32N. Die Ergebnisse könnten nicht mit denen der bevorzugten 
Operation übereinstimmen. 
Möglicherweise wurde eine falsche Operation zwischen den Referenzsystemen 
gewählt. Bitte die Projekteigenschaften prüfen und sicherstellen das die 
gewählten Transformationsoperationen auf das ganze Projektausmaß anwendbar 
sind.)

Don't know what exactly this tries to tell me, but I think something is still 
missing and so far I was not able to find a correct "operation" to point to in 
proj.db.
Or is it because of the area_of_use, which is far bigger than the grid extend? 
Or the missing accuracy? - Sarching for ballpark I found this issue #34983[1] 
but can't really say that I understand the comments.

[1] https://github.com/qgis/QGIS/issues/34983

Btw, certainly you are absolutely right regarding the publication with PROJ and 
registration of our gsb-file and therefore I contacted the authors for the 
nessesary informations...

Greetings
Thomas


> Even Rouault  hat am 3. Juni 2020 15:37 
> geschrieben:
> 
> 
> > Is it correct, that the tranformations in this dialog are read from
> > \share\proj\proj.db and therefore this is the place to add my
> > configuration?
> Yes
> > I found that there is a record for the (not shipped)
> > BWTA2017.gsb. in table grid_transformation of proj.db. So, do I just have
> > to add a record to grid_transformation for my gridfile in the same way?
> Yes
> > What would be the correct parameters? Is there another table that has to be
> > adapted to make it work?
> The critical parameters to set are the EPSG code of the source and target 
> CRS. You must use the geographic CRS ones that correspond to the projected 
> one you mentions. So EPSG:4314 (DHDN) as the source and EPSG:4258 (ETRS89) as 
> the target. Starting from the record for BWTA2017 should be a good idea.
> For the area of use, you may want to look at the "area" table for a code that 
> fits the bounding box of the grid, or create a new one if there is no match
> For the auth_name of the transformation use 'PROJ', and for the code give 
> some name like 'EPSG_4314_TO_EPSG_4258_FOR_AREA_'
> Utimately, if this grid is open data matching the criteria mentioned at 
> https://github.com/OSGeo/PROJ-data, you may want to submit for inclusion here 
> *and* also make sure the grid is registered in the EPSG database by 
> contacting IOGP:
> http://www.epsg.org/EPSGDataset/Makechangerequest.aspx
> Once donce, that would avoid you in the future to have to hack the PROJ 
> database.
> Note: there are a number of other grids for Germany listed at
> https://github.com/OSGeo/proj-datumgrid/issues that would be candidates for 
> such a process.
> Even
> --
> Spatialys - Geospatial professional services
> http://www.spatialys.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] (how to) register gsb transformation in proj.db?

2020-06-03 Thread Thomas Schüttenberg
Hi there!

After upgrading my QGIS rollout from 3.4 to 3.10 I try to implement our local 
gsb gridfile for layer transformations: DHDN GK3 (EPSG:31467) to ETRS89 UTM 32N 
(EPSG:25832).

Since Proj 6 (QGIS 3.10) the former method of just placing the .gsb to 
\share\proj and updating tbl_srs in \apps\qgis-ltr\resources\srs.db in order to 
make this transformation the default seems to be unsufficient now. The 
configurations do not show up when asked for datum transformation if several 
are available [1]. 

Is it correct, that the tranformations in this dialog are read from 
\share\proj\proj.db and therefore this is the place to add my configuration?
I found that there is a record for the (not shipped) BWTA2017.gsb. in table 
grid_transformation of proj.db. So, do I just have to add a record to 
grid_transformation for my gridfile in the same way? What would be the correct 
parameters? Is there another table that has to be adapted to make it work?

cheers
Thomas

[1] 
https://docs.qgis.org/3.10/en/docs/user_manual/working_with_projections/working_with_projections.html#datum-transformations
___
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] "Oops! No help available"

2020-05-07 Thread Thomas Schüttenberg
Hi Richard,
thanks for your suggestions.
I tested with QGIS versions 3.4.12, 3.10.5, 3.12.1, 3.13.0 and the results are 
all the same:

1) QDesktopServices.openUrl(QUrl(... from the Python console works allways, 
opens in the browser.
2) Menu Help (F1) or any other Help-button in a dialog gives me the turning 
hourglass followed by nohelp.html

Resolving the helpPath variables 
https://docs.qgis.org/$qgis_short_version/$qgis_locale/docs/user_manual/ in the 
systems settings has no effect. 
Using http:// or https:// also makes no difference.

It is absolutely possible that it is a local problem, but I have no clue.

Cheers
Thomas

> Richard Duivenvoorde  hat am 7. Mai 2020 12:47 
> geschrieben:
> 
>  
> Hi Thomas,
> 
> Which QGIS version are you trying?
> 
> With me for example if I run 3.10 I I go to the WMS-dialog and push the
> button there, I see in (I have a debug build on Linux) in the log output:
> 
> Trying to open help using key
> 'working_with_ogc/ogc_client_support.html'. Full URI is
> 'https://docs.qgis.org/3.10/en/docs/user_manual/working_with_ogc/ogc_client_support.html'…
> 
> 3.12 shows:
> 
> Trying to open help using key
> 'working_with_ogc/ogc_client_support.html'. Full URI is
> 'https://docs.qgis.org/3.12/en/docs/user_manual/working_with_ogc/ogc_client_support.html'…
> 
> And those are then (serverside) being redirected to 'testing':
> 
> https://docs.qgis.org/testing/en/docs/user_manual/working_with_ogc/ogc_client_support.html
> 
> Code for this is around here:
> 
> https://github.com/qgis/QGIS/blob/master/src/gui/qgshelp.cpp#L81-L178
> 
> It tests if it is a valid url en and then uses Qt-Desktop-services tools
> to open it:
> 
> https://github.com/qgis/QGIS/blob/master/src/gui/qgshelp.cpp#L38
> 
> You should be able to test this in the Python console:
> 
> QDesktopServices.openUrl(QUrl('https://docs.qgis.org/3.12/en/docs/user_manual/working_with_ogc/ogc_client_support.html'))
> 
> Is that opening you browser with:
> 
> https://docs.qgis.org/testing/en/docs/user_manual/working_with_ogc/ogc_client_support.html
> ?
> 
> Because this is vanilla Qt, I would think that it will use your proxy
> settings... It is NOT using/going through QNetworkAccessManager, so the
> Network Logging plugin will not pick it up.
> 
> Regards,
> 
> Richard Duivenvoorde
> 
> 
> 
> 
> 
> 
> 
> On 5/7/20 11:55 AM, Thomas Schüttenberg wrote:
> > Hi!
> > Unfortunately I constantly face the issue, that the QGIS help is not 
> > retrievable here from my office pc (windows), I only get the "Oops no help 
> > available" site and (most likely) a timeout. This affects at least any QGIS 
> > 3.x version so far. No matter if the options setting HELP_LOCATION is set 
> > to the default path or an explicit url without variables. - At home (no 
> > proxy at all; ubuntu) it works though!
> > 
> > First thing you think is certaily: bad proxy. But the proxy setting (ever 
> > since) is "use DefaultProxy", which works for any other part of QGIS, 
> > including open github pages in browser (chrome) from the add plugin dialog 
> > (if that is comparable).
> > 
> > I was not able to pick up the request in the browser, because it opens a 
> > new browser tab. I also tried the Network Logging plugin to get some 
> > insight, but it did not show anything, maybe it does not listen to such 
> > requests.
> > 
> > Does anybody has a tip for me?
> > 
> > Cheers
> > 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] "Oops! No help available"

2020-05-07 Thread Thomas Schüttenberg
Hi!
Unfortunately I constantly face the issue, that the QGIS help is not 
retrievable here from my office pc (windows), I only get the "Oops no help 
available" site and (most likely) a timeout. This affects at least any QGIS 3.x 
version so far. No matter if the options setting HELP_LOCATION is set to the 
default path or an explicit url without variables. - At home (no proxy at all; 
ubuntu) it works though!

First thing you think is certaily: bad proxy. But the proxy setting (ever 
since) is "use DefaultProxy", which works for any other part of QGIS, including 
open github pages in browser (chrome) from the add plugin dialog (if that is 
comparable).

I was not able to pick up the request in the browser, because it opens a new 
browser tab. I also tried the Network Logging plugin to get some insight, but 
it did not show anything, maybe it does not listen to such requests.

Does anybody has a tip for me?

Cheers
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] Modeler: point input from clicked coordinates

2019-09-13 Thread Thomas Schüttenberg
Hi Alexander,

you are right. After adding the model into the toolbox and execuing it from 
there the point clicking works as expected. - When executing the model from the 
model builder window the picking functionality is not there, though.

never mind, thanks!

Thomas

> Alexander Bruy  hat am 13. September 2019 um 10:42 
> geschrieben:
> 
> 
> Hi Thomas,
> 
> there is no need to select point in the modeler. Just add point input
> and use it your model.
> When you will run your model you will be able to select point on the canvas.
> 
> Hope this helps.
> 
> пт, 13 вер. 2019 о 11:31 Thomas Schüttenberg  пише:
> >
> > Hi!
> > Just started with QGIS (3.4) modeler and stumbled across a - hopefully 
> > simple - question: how to input a point (coordinates) picked by a mouse 
> > click?
> >
> > When using the shortest path (point to point) alg direct from the 
> > processing toolbox I have the oportunity to pick start and end points with 
> > a mouse-click after clicking the button with the three dots [...]; the 
> > window moves aside and the mouse cursor turns into a crosshair for picking. 
> > -  So far, so good.
> >
> > But when using this algorithm in a model the mentioned button doesn't work 
> > like this: the window minimizes, but the cursor keeps beeing an arrow and 
> > does not pick a coordinate/point.
> > My input parameter for start and end is 'point' with no default defined.
> >
> > Any hint and help appreciated, thanks.
> >
> > 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
> 
> 
> 
> -- 
> Alexander Bruy
___
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] Modeler: point input from clicked coordinates

2019-09-13 Thread Thomas Schüttenberg
Hi!
Just started with QGIS (3.4) modeler and stumbled across a - hopefully simple - 
question: how to input a point (coordinates) picked by a mouse click?

When using the shortest path (point to point) alg direct from the processing 
toolbox I have the oportunity to pick start and end points with a mouse-click 
after clicking the button with the three dots [...]; the window moves aside and 
the mouse cursor turns into a crosshair for picking. -  So far, so good.

But when using this algorithm in a model the mentioned button doesn't work like 
this: the window minimizes, but the cursor keeps beeing an arrow and does not 
pick a coordinate/point. 
My input parameter for start and end is 'point' with no default defined.

Any hint and help appreciated, thanks.

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] QGIS server: raster layer turn white

2019-08-19 Thread Thomas Schüttenberg
Hi there!

I'm trying to serve a raster terrain model as a wms with QGIS server 3.4. The 
layer is a virtual raster consiting of geotiffs with external pyramids and the 
server has access to all files. 
As well as in QGIS desktop the wms it is correctly displayed when served (QGIS 
as client), but only at relatively small scales (in this case > ~1:12800). When 
zooming in, the wms rasterlayer disapears, or better said, only a white picture 
is served. 

I have no clue why this happens, there are no errors in the logs. Has anyone 
experienced such behavior? 

Note: certainly there is no scale dependant visibility configured in the .qgs! 
;-)

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 server and pg_service.conf

2018-10-10 Thread Thomas Schüttenberg
Update:
in the apache configuration for a QGIS server 3.2 (on windows) a 
pg_service.conf must be set with: 
FcgidInitialEnv PGSERVICEFILE 
[server]\\dings\\bums\\pgconf\\pg_service.conf 
not with SetEnv ... (2.18)

This aspect has to be corrected in the documentation[1], if it is not os 
specific, I think.

[1] 
https://docs.qgis.org/testing/en/docs/training_manual/qgis_server/install.html

happy QGISing
Thomas


> Thomas Schüttenberg  hat am 9. Oktober 2018 um 15:23 
> geschrieben:
> 
> 
> Hi again,
> 
> in further tests - now with QGIS server 3.2.3 - the SetEnv PGSERVICEFILE 
> resp. PGSYSCONFDIR configuration of my httpd-vhosts.conf did not work as it 
> did in QGIS 2.18.24  (see below) :-(
> 
> I tried several notations of the file path an also put pg_service.conf on the 
> local machine. No effect. QGIS 3.2.3 Desktop is fine with the service file 
> connection.
> 
> NB: the authentication system has not been used, as supposed here 
> https://lists.osgeo.org/pipermail/qgis-user/2018-September/041021.html 
> 
> clueless (again)
> Thomas
> 
> > Thomas Schüttenberg  hat am 8. Oktober 2018 um 11:20 
> > geschrieben:
> > 
> > 
> > Hi!
> > Picking up my earlier thread on pg_service.conf in QGIS server 
> > [https://lists.osgeo.org/pipermail/qgis-user/2018-September/041014.html] I 
> > can gladly tell you that I figured it out!
> > 
> > As said, setting the environment variables on the operating system(s) was 
> > ok, but I missed to define it ALSO in the apache configuration 
> > (httpd-vhosts.conf), as it is stated in the documentation: 
> > https://docs.qgis.org/2.18/en/docs/user_manual/working_with_ogc/ogc_server_support.html#connection-to-service-file
> >  
> > https://docs.qgis.org/2.18/en/docs/training_manual/qgis_server/install.html 
> > 
> > After fiddeling with the UNC for the path to the service file (between 
> > unix/linux doc and windows machine) it both worked on win 7 64bit with 
> > SetEnv PGSERVICEFILE [server]\\dings\\bums\\pgconf\\pg_service.conf
> > or
> > SetEnv PGSYSCONFDIR [server]\\dings\\bums\\pgconf\\
> > 
> > (This tread was also very helpful 
> > http://osgeo-org.1560.x6.nabble.com/pg-services-on-Windows-td5284889.html )
> > 
> > happy QGISing!
> > 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 server and pg_service.conf

2018-10-09 Thread Thomas Schüttenberg
Hi again,

in further tests - now with QGIS server 3.2.3 - the SetEnv PGSERVICEFILE resp. 
PGSYSCONFDIR configuration of my httpd-vhosts.conf did not work as it did in 
QGIS 2.18.24  (see below) :-(

I tried several notations of the file path an also put pg_service.conf on the 
local machine. No effect. QGIS 3.2.3 Desktop is fine with the service file 
connection.

NB: the authentication system has not been used, as supposed here 
https://lists.osgeo.org/pipermail/qgis-user/2018-September/041021.html 

clueless (again)
Thomas

> Thomas Schüttenberg  hat am 8. Oktober 2018 um 11:20 
> geschrieben:
> 
> 
> Hi!
> Picking up my earlier thread on pg_service.conf in QGIS server 
> [https://lists.osgeo.org/pipermail/qgis-user/2018-September/041014.html] I 
> can gladly tell you that I figured it out!
> 
> As said, setting the environment variables on the operating system(s) was ok, 
> but I missed to define it ALSO in the apache configuration 
> (httpd-vhosts.conf), as it is stated in the documentation: 
> https://docs.qgis.org/2.18/en/docs/user_manual/working_with_ogc/ogc_server_support.html#connection-to-service-file
>  
> https://docs.qgis.org/2.18/en/docs/training_manual/qgis_server/install.html 
> 
> After fiddeling with the UNC for the path to the service file (between 
> unix/linux doc and windows machine) it both worked on win 7 64bit with 
> SetEnv PGSERVICEFILE [server]\\dings\\bums\\pgconf\\pg_service.conf
> or
> SetEnv PGSYSCONFDIR [server]\\dings\\bums\\pgconf\\
> 
> (This tread was also very helpful 
> http://osgeo-org.1560.x6.nabble.com/pg-services-on-Windows-td5284889.html )
> 
> happy QGISing!
> 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] QGIS server and pg_service.conf

2018-10-08 Thread Thomas Schüttenberg
Hi!
Picking up my earlier thread on pg_service.conf in QGIS server 
[https://lists.osgeo.org/pipermail/qgis-user/2018-September/041014.html] I can 
gladly tell you that I figured it out!

As said, setting the environment variables on the operating system(s) was ok, 
but I missed to define it ALSO in the apache configuration (httpd-vhosts.conf), 
as it is stated in the documentation: 
https://docs.qgis.org/2.18/en/docs/user_manual/working_with_ogc/ogc_server_support.html#connection-to-service-file
 
https://docs.qgis.org/2.18/en/docs/training_manual/qgis_server/install.html 

After fiddeling with the UNC for the path to the service file (between 
unix/linux doc and windows machine) it both worked on win 7 64bit with 
SetEnv PGSERVICEFILE [server]\\dings\\bums\\pgconf\\pg_service.conf
or
SetEnv PGSYSCONFDIR [server]\\dings\\bums\\pgconf\\

(This tread was also very helpful 
http://osgeo-org.1560.x6.nabble.com/pg-services-on-Windows-td5284889.html )

happy QGISing!
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 server and pg_service.conf

2018-09-06 Thread Thomas Schüttenberg
Hi!

Yes, I did that. The environment variable PGSYSCONFDIR is set also on the 
server machine, it points to the same connection file and it works: QGIS on the 
server pc can load layers with this service parameter.

That's why I expected my (bundeled) QGIS server to do the same and use the pg 
service within the wms, but it gives only an empty wms, named like the .qgs, 
without the actual layers.
I'm using QGIS 2.18.23 here, maybe it's a bug?

Beste regards
Thomas


> Carlos López PSIG  hat am 6. September 2018 um 13:03 
> geschrieben:
> 
> 
> Hi,
> You should to define environment variables to use pg_service.conf in server
> too.
> Of course, the service should to use tha same name.
> 
> Test without define connection to database using "service", therefore write
> host/port/databse/user& password to confirm that the connection it's ok.
> 
> luck,
> 
> Best regards,
> 
> * <http://psig.es>*
> *PSIG*
> Implementació, gestió i formació SIG
> 
> *Carlos López Quintanilla*
> 
> www.psig.es
> carlos.lo...@psig.es
> +34 699.680.261
> 
> Nota legal: Este mensaje y cualquier archivo adjunto está destinado
> únicamente a la
> persona a quien se dirige y es confidencial. Si usted ha recibido este
> mensaje por
> error, por favor, comuníqueselo al remitente y bórrelo inmediatamente. La
> utilización ,
> revelación y/o reproducción del mensaje puede constituir un delito.
> 
> Protección de Datos: Le informamos que sus datos de contacto electrónico se
> hallan
> incorporados a un fichero titularidad de CARLOS LÓPEZ QUINTANILLA, al
> objeto de
> envío de información, respuesta a consultas y contactos genéricos.
> Puede ejercer los derechos de acceso, rectificación, cancelación y
> oposición que
> establece la LOPD en cualquier momento, mediante escrito, acompañado de
> copia de
> documento oficial que le identifique, dirigido a CARLOS LÓPEZ QUINTANILLA
> CL. P
> arellada, 8 E2 de Corbera de Llobregat, 08757-Barcelona.
> 
> También podrá oponerse a nuestros envíos de comunicaciones comerciales
> (Art.21.2
> de la LSSI) a través de la siguiente dirección de correo electrónico:
> ad...@psig.es
> 
> 
> 
> El jue., 6 sept. 2018 a las 12:37, Thomas Schüttenberg ()
> escribió:
> 
> > Hi there!
> >
> > I wonder if/how the QGIS server (2.18) is able to use PostgeSQL service
> > connection files [1].
> >
> > I have a project file with postgis layers, that are connected via the
> > service parameter (instead of hostname/port...). These are defined in
> > pg_service.conf and work.
> >
> > When I serve this project with QGIS server 2.18 as wms, connecting the wms
> > (in QGIS desktop) works, but it does not contain any layers.
> >
> > A WMS made from the same project and datasource but with full database
> > credentials works als usual.
> >
> > Thanks for any hint, maybe I just miss something.
> >
> > Cheers
> > 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] QGIS server and pg_service.conf

2018-09-06 Thread Thomas Schüttenberg
Hi there!

I wonder if/how the QGIS server (2.18) is able to use PostgeSQL service 
connection files [1]. 

I have a project file with postgis layers, that are connected via the service 
parameter (instead of hostname/port...). These are defined in pg_service.conf 
and work.

When I serve this project with QGIS server 2.18 as wms, connecting the wms (in 
QGIS desktop) works, but it does not contain any layers.

A WMS made from the same project and datasource but with full database 
credentials works als usual.

Thanks for any hint, maybe I just miss something.

Cheers
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] QGIS Anwendertreffen 14.09.2018

2018-09-03 Thread Thomas Schüttenberg
Liebe QGIS- und FOSSGIS-Freunde!

Es sei nochmal erinnert an das QGIS Anwendertreffen am Freitag, den 14. 
September. DAS QGIS Community Event zum Erscheinen von QGIS 3.4 LTR beginnt um 
9:00 Uhr, in diesem Jahr in Essen im Haus der Technik direkt am Hauptbahnhof. 

Das Programm aus Vorträgen von QGIS Anwendern sowie Themen-Stammtischen und 
Workshops, u.a. zu QGIS 3 oder XPlanung mit QGIS findet sich auf der QGIS-DE 
Webseite https://qgis.de 

Die Teilnahme an Vorträgen und Diskussionen (Themen-Stammtischen) ist wie immer 
kostenfrei. Für die Teilnahme an einem Workshop wird ein Kostenbeitrag von 100 
Euro erhoben. Es gibt noch freie Plätze! Die Anmeldung  schließt in zehn Tagen, 
am Donnerstag den 13.9.

Schnell noch anmelden, wir freuen uns auf Euch!

https://qgis.de/doku.php?id=site:anwendertreffen:essen2018

herzliche Grüße
Thomas Schüttenberg
QGIS-DE e.V. - Anwendergruppe Deutschland



-- 
QGIS Anwendergruppe Deutschland e.V. | https://qgis.de| anwen...@qgis.de 
qgis...@lists.osgeo.org| QGIS rockt! => https://plugins.qgis.org/planet/
___
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] Gesucht: Übersetzer der aktuellen QGIS-Dokumentation

2016-05-30 Thread Thomas Schüttenberg
Liebe FOSSGIS und QGIS Gemeinde!

Die QGIS Anwendergruppe Deutschland e.V. (QGIS-DE e.V.) beabsichtigt eine 
aktualisierte Version des deutschsprachigen QGIS Benutzerhandbuches erstellen 
zu lassen. Zu diesem Zweck suchen wir fähige Leute, die diese 
Übersetzungsleistung übernehmen.

Das QGIS Benutzerhandbuch der Version 2.8 LTR [1] soll auf Grundlage der 
aktuellen, englischsprachigen Programmdokumentation der QGIS Version 2.14 (die 
demnächst LTR wird) aktualisiert und ergänzt werden.

Die zu aktualisierenden und zu ergänzenden Passagen sind aus dem Englischen zu 
übersetzen und die Übersetzung soll gemäß den Translation Guidelines des 
QGIS.ORG Projektes [2] erfolgen. Vorraussetzung für die Handbuchübersetzung 
sind, neben Englischkenntnissen, grundlegende Kenntnisse der Software QGIS, um 
die zu bearbeitenden Inhalte richtig zu verstehen. Von Vorteil sind auch 
Kenntnisse im Umgang mit der Transifex-Web-Plattform [3].

Im Einzelnen sind folgende Teile der Dokumentation zu überarbeiten:
- sämtliche Beschreibungen von Funktionalitäten, die in den Versionen 2.10, 
2.12 und 2.14 neu hinzu gekommen sind
- (dazugehörige) Abbildungen, basierend auf der deutschsprachigen 
Benutzeroberfläche sind nachzubilden (und auzutauschen)
- noch nicht übersetzte Teile der bisherigen deutschsprachigen Dokumentation 2.8

Die aktualisierte Dokumentation zur QGIS Version 2.14 LTR wird den Anwendern 
anschließend über die Webseite des QGIS-Projektes (docs.qgis.org) zur Verfügung 
gestellt.

Wir erbitten eine Angebotsabgabe bis zum 15.06.2016 unter Nennung einschlägiger 
Kenntnisse und evt. Referenzen in elektronischer Form an die Email-Adresse: 
vorst...@qgis.de

herzliche Grüße
Thomas Schüttenberg
QGIS-DE e.V. Vorsitzender

[1] http://docs.qgis.org/2.8/de/docs/user_manual
[2] http://docs.qgis.org/testing/en/docs/documentation_guidelines/index.html
[3] https://www.transifex.com/

-- 
QGIS Anwendergruppe Deutschland e.V. | http://qgis.de 
Merkensstraße 18 | D-50825 Köln | +49 (0)221 16943855 
vorst...@qgis.de | Thomas Schüttenberg, Andreas Voigt
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] FileGDB: missing FID column

2015-12-16 Thread Thomas Schüttenberg
Hi!

please can anybody tell me why the FID column of a fileGDB-Layer is ignored and 
not shown in QGIS?

I added a fileGDB via add vector layer>directory>type OpenFileGDB or 
ESRI-FileGDB and everything
works fine and fast.
But when looking at the attribute table or the layer propeties the column 
"objectid" is not there
although it is part of the data (see ogrinfo below). I tested this with 2.8.4 
and 2.12.1

The actual reason to fumble with the FileGDB is, that i want to transfer this 
data to my PG. In this
import process (e.g. OGR processing "Import Vector into PostGIS database") 
however the FID column is
also ignored. 
A (new) FID/PK-column, that can be created during import is always filled with 
fresh serial values -
not the original IDs from the data source -even when their name are the same.

The only way I see to solve / by-pass this (in my use case) is to duplicate the 
objectids to a new,
seperate field befor doing the ogr-import.

But maybe some of you could suggest a better solution (and save me from the 
manual
table-editing-pain? ;-)

thanks in advance
Thomas

C:\Windows\System32>ogrinfo -so c:\zeug\kanal_end.gdb KaAnschlusspunkt
Had to open data source read-only.
INFO: Open of `c:\zeug\kanal_end.gdb'
  using driver `OpenFileGDB' successful.

Layer name: KaAnschlusspunkt
Geometry: Point
Feature Count: 3377
Extent: (8.30, 11.186000) - (371550.148000, 5663269.606000)
Layer SRS WKT:
PROJCS["ETRS89 / UTM zone 32N",
GEOGCS["ETRS89",
DATUM["European_Terrestrial_Reference_System_1989",
SPHEROID["GRS 1980",6378137,298.257222101,
AUTHORITY["EPSG","7019"]],
TOWGS84[0,0,0,0,0,0,0],
AUTHORITY["EPSG","6258"]],
PRIMEM["Greenwich",0,
AUTHORITY["EPSG","8901"]],
UNIT["degree",0.0174532925199433,
AUTHORITY["EPSG","9122"]],
AUTHORITY["EPSG","4258"]],
PROJECTION["Transverse_Mercator"],
PARAMETER["latitude_of_origin",0],
PARAMETER["central_meridian",9],
PARAMETER["scale_factor",0.9996],
PARAMETER["false_easting",50],
PARAMETER["false_northing",0],
UNIT["metre",1,
AUTHORITY["EPSG","9001"]],
AXIS["Easting",EAST],
AXIS["Northing",NORTH],
AUTHORITY["EPSG","25832"]]
FID Column = OBJECTID
Geometry Column = Shape
PunktNr: String (0.0)
Punktkennung: String (0.0)
Kanalart: String (0.0)
...

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

Re: [Qgis-user] Setting up a local user group: How to do it?

2015-09-15 Thread Thomas Schüttenberg
Hi Bernd!

Just found your post on the list. I am chair of the "QGIS-Anwendergruppe 
Deutschland e.V."
(http://www.qgis.de) that Andreas mentioned and I invite you to join!

We just became registered "e.V." last week, so it is rather new really. But I 
also thought about how
to reach every corner of the country in terms of achieving more often or/and 
easier meetings of
users. Maybe the annual user meetings start touring the country from next year 
on or they become
multiplied/subdivided at regional level. - We will have to discuss this.

I'm sorry that you can't make it to Kassel, but please feel free to contact me.

Cheers
Thomas

-- 
Technische Werke Burscheid AöR | Pastor-Löh-Straße 12 | 51399 Burscheid
Dipl.-Geogr. Thomas Schüttenberg | GIS-Koordination & GeoDataManagement
fon: +49 2174 7878-405 | t.schuettenb...@tw-burscheid.de | 
http://www.tw-burscheid.de
QGIS Anwendergruppe Deutschland e.V. | Vorsitzender | http://www.qgis.de
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user