Re: [Qgis-user] QGIS "full" builds

2021-08-18 Thread Tobias Wendorff

Am 17.08.2021 um 13:13 schrieb Jürgen E. Fischer:

Not reproducable.  You didn't uncheck the checkbox for start menu icons and did
check the one for desktop items?
Now it works. Maybe not all mirrors were in sync? I'm often having with 
norbit.de. It seems like the license files are missing. I need to report 
this.

___
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] GRASS Error Popup in Python Console

2021-08-18 Thread Jon Haycox
While running a script in the Python console in QGIS v3.16.10, I intermittently 
get a GRASS error pop-up. The pop-up is a small box saying "unfortunately GRASS 
7 has stopped working, please close the program". The program doesn't continue 
further in execution when this is shown. Has anyone else had to troubleshoot 
this error or found a workaround?

Thanks,
Jon.

___
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] PyQgis - PostGIS layers won't show in export to PDF (layout)

2021-08-18 Thread Charles Dixon-Paver
If your local files are exporting but nothing is being pulled from the
database I would suspect an authentication/ permissions issue.

There are a number of ways that QGIS/PG authentication can work in a
project, mainly:

   - Basic (plaintext) stored in the QGIS Project - Insecure and not
   recommended, but convenient if you want to make a copy of your project
   - Auth manager - Each user profile has it's own qgis-auth.db which is
   sqlite. You would need to share different auths between users and projects
   by using the same authid. Note that I don't think that loading the QGIS
   project from PyQGIS is automatically going to load your auth config though,
   and it may need to be instantiated in your script [1]. My suspicion is that
   you are using this method and the QGIS GUI unlocks it for you, resulting in
   the varied result. You could always try to run most of your script from the
   python console in the project to check if that works too.
   - PGSERVICE - You can also use pg_service.conf (it even supports
   password=), or similar connection environment variables, which is both
   convenient and significantly more secure than plaintext credentials in the
   project. If managed well it can offer a good level of security, but a word
   of caution is that misuse of it can be a lot more dangerous from a security
   persepctive. Good for testing purposes though... But note that the way
   layers are defined and loaded in a project file will vary between service
   based connections and those managed by the auth manager.

You can also make a new (or copy an existing) user profile to define the
database connection to prevent the risk of breaking your existing project
and db configs.

I think doing some quick tests to verify whether or not it is an
authentication issue is recommended, because auth management can be a bit
of a rabbit hole.

Regards

[1]
https://docs.qgis.org/3.16/en/docs/pyqgis_developer_cookbook/authentication.html
[2] https://www.postgresql.org/docs/13/libpq-pgservice.html

On Tue, 17 Aug 2021 at 23:28, Baker, Matthew 
wrote:

> Hi all,
>
> When using PyQGIS with Python 3.8 I can't seem to get the PostGIS layers
> of a QGIS layout to export to PDF while the local / shapefile layers will.
>
> The manual export to PDF from the QGIS Layout window will export the
> PostGIS layers just fine along with the SHP layers.
>
> From the code below, can anyone spot what I might be missing?
>
> (Running QGIS 3.18 on Linux Mint 20 with Python 3.8)
>
> Thank you, and let me know if more info is needed!
>
> (BEGIN CODE)
>
> #!/usr/bin/env python3
> import os
> from qgis.core import (
> #layout and general
>   QgsProject, QgsLayoutExporter, QgsApplication
>  )
>
> QgsApplication.setPrefixPath("/usr", True)
> gui_flag = False
> app = QgsApplication([], gui_flag)
> app.initQgis()
>
> project_path = os.getcwd() + '/rec_centers.qgz'
> project_instance = QgsProject.instance()
> project_instance.setFileName(project_path)
> project_instance.read()
>
> #print layer names in layout (not used anywhere else):
> names = [layer.name() for layer in
> QgsProject.instance().mapLayers().values()]
> print ('Layers in project: ', names)
>
> #layout stuff
> manager = QgsProject.instance().layoutManager()
> layout = manager.layoutByName("test_layout") # name of the layout
>
> #export stuff
> exporter = QgsLayoutExporter(layout)
> exporter.exportToPdf(project_instance.absolutePath() +
> "/output/layout.pdf",
>  QgsLayoutExporter.PdfExportSettings())
>
> app.exitQgis()
>
> (END CODE)
>
> -m
> --
>
> MATTHEW BAKER
> Spatial Information Manager
> Denver Public Schools
> Department of Enrollment and Campus Planning
>
> 1860 Lincoln St., Denver, CO 80203 | 11th Floor
> 720-423-3419 | matthew_ba...@dpsk12.org | planning.dpsk12.org
>
> Students First . Integrity . Equity . Collaboration . Accountability . Fun
> .
> ___
> 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] Resource Location Error with new installation on SUSE Leap 15.2

2021-08-18 Thread Ko van Huissteden

Hello,

I have a new installation of QGIS 3.16 long term release (Hannover) on 
Suse Leap 15.2 Linux.


However, it hangs when I try to  add an existing layer to a new project. 
The window for opening an existing file has the title ''Resource 
location error".


Opening an exiting project crashes QGIS immediately.

Does anyone know how to solve this? Never had problems with QGIS on Suse 
Linux before


Ko van Huissteden


___
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] Need help with changing CRS

2021-08-18 Thread Alexandre Neto
Hi,

As David said, the key point here is that you should not change the layers'
CRS (unless it's wrong ofc). Keeping the data original CRS and changing the
project CRS will tell QGIS that on-the-fly transformation is needed for
that layer. This will make you layer, originally in EPSG:4326, look like
it's in the project CRS.

Alexandre Neto
User Support
www.qcooperative.net

A quarta, 18/08/2021, 05:19, Brian Gilhuly 
escreveu:

> That did it, thanks.
>
> I think I previously tried changing the layer CRS, then the project.
>
> Brian
>
>
>
> *From:* David Strip 
> *Sent:* August 17, 2021 23:21
> *To:* Brian Gilhuly ; qgis-user@lists.osgeo.org
> *Subject:* Re: [Qgis-user] Need help with changing CRS
>
>
>
> I'm not sure exactly what you did, but I am a bit concerned by this:
>
> Then I changed the CRS (layer and project)
>
> Try this:
>
> Start with a new project
>
> Add the Natural Earth Admin boundaries layer
>
> Select File->Properties->CRS
>
> Select Mollweide (or whatever you want), then click Apply.
>
>
>
> Note that we are not touching the CRS for the layer.
>
>
>
> I get a radically different projection than WGS 84 (EPSG:4326).
>
>
> On 8/17/2021 7:45 PM, Brian Gilhuly wrote:
>
> I need a world map on which to display country web statistics and, being
> in Canada, want to avoid projections like Mercator with their northern
> distortions. Something like Mollweide or Robinson is more what I am seeking.
>
>
>
> I downloaded the Natural Earth administrative borders map (WGS84) and
> opened it in QGIS 3.20 as the only layer in a new project. So far, so good.
>
>
>
> Then I changed the CRS (layer and project) to Mollweide (ESRI:54009) and
> the on-screen render changed hardly at all. It didn’t remain unchanged, but
> it still looks very much more like WGS84 than Mollweide. The same happens
> if I try to re-project to Robinson (ESRI:54030) or Winkel-Tripel
> (ESRI:54042).
>
>
>
> So far as I can tell, I have followed all the steps outlined in the online
> manual but there must be something obvious that I am missing.
>
>
>
> Can someone set me straight?
>
>
>
> Thanks,
>
> Brian Gilhuly
>
>
>
> ___
>
> 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] How to make a table in a subsection report

2021-08-18 Thread Alexandre Neto
Hello Dario,

Do you mean having the same attribute table divided in two columns?

If so. Yes, that is possible.

Alexandre Neto
User Support Team
www.qcooperative.net

A quarta, 18/08/2021, 08:37, Dario C  escreveu:

> I'm considering to make a custom page with the size of the form and then I
> use Indesign or similar to compose everything.
>
> Thank you for your reply
>
> Il giorno mer 18 ago 2021 alle ore 09:05 Bernd Vogelgesang <
> bernd.vogelges...@gmx.de> ha scritto:
>
>> I only faintly remember making a report last year with a similar problem
>> (maps of photo destinations on different sections of a highway).
>>
>> I think I solved it by adding new columns of combined indices with the
>> subsection (your grid) and the photo-id, because there way no way to do
>> this within the report.
>>
>> Haven't touched the tool since then, cause every redecision on how to
>> design the report lead to a complete new start from scratch, which took
>> too much time.
>>
>> Not sure if it hits your problem. As I said, can't remember well.
>>
>> Good luck,
>>
>> Bernd
>>
>> On 18.08.21 08:53, Dario wrote:
>> > Hi, I have a report with a primary dynamic section where I have a map
>> with a controlled layer (indexed grid). Inside each map I have points
>> (sometime one, sometime more).
>> >
>> > I need to make a subsection with these points (each point has the same
>> indexed grid name, so I can maintain the same order of the map).
>> > The issue is it is requested to make two table (form) for each page and
>> I don’t know if it is possible or not. I mean... what’s happen when I have
>> only one table and how it recognise the sequence between first and second
>> item in the same page?
>> >
>> > Sorry if I was not so clear...
>> >
>> > Thank you in advance for your help
>> >
>> > Cheers
>> >
>> > _
>> > ___
>> > 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] How to make a table in a subsection report

2021-08-18 Thread Dario C
I'm considering to make a custom page with the size of the form and then I
use Indesign or similar to compose everything.

Thank you for your reply

Il giorno mer 18 ago 2021 alle ore 09:05 Bernd Vogelgesang <
bernd.vogelges...@gmx.de> ha scritto:

> I only faintly remember making a report last year with a similar problem
> (maps of photo destinations on different sections of a highway).
>
> I think I solved it by adding new columns of combined indices with the
> subsection (your grid) and the photo-id, because there way no way to do
> this within the report.
>
> Haven't touched the tool since then, cause every redecision on how to
> design the report lead to a complete new start from scratch, which took
> too much time.
>
> Not sure if it hits your problem. As I said, can't remember well.
>
> Good luck,
>
> Bernd
>
> On 18.08.21 08:53, Dario wrote:
> > Hi, I have a report with a primary dynamic section where I have a map
> with a controlled layer (indexed grid). Inside each map I have points
> (sometime one, sometime more).
> >
> > I need to make a subsection with these points (each point has the same
> indexed grid name, so I can maintain the same order of the map).
> > The issue is it is requested to make two table (form) for each page and
> I don’t know if it is possible or not. I mean... what’s happen when I have
> only one table and how it recognise the sequence between first and second
> item in the same page?
> >
> > Sorry if I was not so clear...
> >
> > Thank you in advance for your help
> >
> > Cheers
> >
> > _
> > ___
> > 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] How to make a table in a subsection report

2021-08-18 Thread Bernd Vogelgesang

I only faintly remember making a report last year with a similar problem
(maps of photo destinations on different sections of a highway).

I think I solved it by adding new columns of combined indices with the
subsection (your grid) and the photo-id, because there way no way to do
this within the report.

Haven't touched the tool since then, cause every redecision on how to
design the report lead to a complete new start from scratch, which took
too much time.

Not sure if it hits your problem. As I said, can't remember well.

Good luck,

Bernd

On 18.08.21 08:53, Dario wrote:

Hi, I have a report with a primary dynamic section where I have a map with a 
controlled layer (indexed grid). Inside each map I have points (sometime one, 
sometime more).

I need to make a subsection with these points (each point has the same indexed 
grid name, so I can maintain the same order of the map).
The issue is it is requested to make two table (form) for each page and I don’t 
know if it is possible or not. I mean... what’s happen when I have only one 
table and how it recognise the sequence between first and second item in the 
same page?

Sorry if I was not so clear...

Thank you in advance for your help

Cheers

_
___
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] How to make a table in a subsection report

2021-08-18 Thread Dario
Hi, I have a report with a primary dynamic section where I have a map with a 
controlled layer (indexed grid). Inside each map I have points (sometime one, 
sometime more).

I need to make a subsection with these points (each point has the same indexed 
grid name, so I can maintain the same order of the map). 
The issue is it is requested to make two table (form) for each page and I don’t 
know if it is possible or not. I mean... what’s happen when I have only one 
table and how it recognise the sequence between first and second item in the 
same page?

Sorry if I was not so clear...

Thank you in advance for your help

Cheers

_
___
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