[Qgis-user] QgsVectorLayer Fails to Load in PyQGIS 3

2019-01-11 Thread Matt Brauer
I am having issues getting a shape file to load with the QgsVectorLayer function in PyQGIS. If I use the function in the python console within the QGIS GUI the layer loads fine and is valid. However, if I implement the same function in my standalone python 3 script, the layer.isValid() function ret

Re: [Qgis-user] [Qgis-community-team] training manual QGIS 3

2019-01-11 Thread Janneke van Dijk
Hi Harrissou and others, With your steps described below it was perfectly clear what I had to do, no confusion in my mind whatsoever. So I just tried to compare it to the documentation (link: https://docs.qgis.org/testing/en/docs/documentation_guidelines/first_contribution.html#share-your-chan

Re: [Qgis-user] Fehler bei Flächenberechnung unter Qgis 3.4.3

2019-01-11 Thread Andreas Neumann
Hallo Andreas, Verwende mal area($geometry) statt $area. Ersteres ist die planimetrische Fläche, zweiteres die ellipsoidische. Aus der Hilfe von area($gemetry): Returns the area of a geometry polygon object. Calculations are always planimetric in the Spatial Reference System (SRS) of this ge

[Qgis-user] Fehler bei Flächenberechnung unter Qgis 3.4.3

2019-01-11 Thread Andreas Sauter
Hallo Zusammen, weiß jemand woran es liegt, wenn im neuen QGIS 3.4.3 die Flächengrößen falsch berechnet werden (Fieldcalculator --> Geometrie --> $area)? Bei der Berechnung der Flächengrößen des SELBEN Shapes mit der QGIS Version 2.18 kommen die richtigen Werte raus... Viele Grüße Andreas

Re: [Qgis-user] QGIS 3.4.3 becoming unusable for me on Windows 10

2019-01-11 Thread Michel Stuyts
You can use the Python variable qgis.utils.plugin_times to find out how long each plugin takes to load at startup of QGIS. For end users I created a plugin that shows the information of that Python variable with a pie chart and a list of all plugins. This plugin is called "Plugin Load Times" an

[Qgis-user] Different behaviour Raster Calculater under Raster menu vs Processing Toolbox

2019-01-11 Thread Janneke van Dijk
Dear all, I'm testing the training manual (QGIS 3) and think I ran into a bug - unless I am misunderstanding something. I am doing the following, QGIS 3.4.3 on Windows: 1. Processing>Raster terrain analysis>Aspect: use the exercise_data\raster\SRTM\srtm_41_19.tif DEM as an input and use the

Re: [Qgis-user] Project files with local and remote connections to postgreSQL databases

2019-01-11 Thread Andreas Neumann
Hi, Yes - it is a perfect case for PostgreSQL service definitions. See https://docs.qgis.org/testing/en/docs/user_manual/managing_data_source/opening_data.html#postgresql-service-connection-file This way you are flexible: you don't connect to a hostname/ip/port/database connection but to a s