Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 46073

QGIS is a cross-platform GIS application licensed under the GNU General Public License.

3 votes

Creating forms in QGIS

With the online material for qgis comes a training manual. It describes how to create forms for vector data. … The most extensive way is to use the QtDesigner, the form itself is stored as an XML-File, which QGIS can use. …
Andreas Müller's user avatar
2 votes

What is the relationship between layer attributes and fields in QGIS

I don't know if this is the way it's ment to be by the autors of the QGIS-API, but in addition to that, the python-API is directly derived from the C++-API, where other naming conventions exist, which … then collide with python and QGIS-Terms. …
Andreas Müller's user avatar
3 votes
Accepted

Checking if vertices of polygon are in clockwise or anti-clockwise direction in QGIS?

This solution uses the Advanced Python field calculator in QGIS 2.18 described here and the function signed_area (i copied it from shapely source code) In the dialog we choose the Input layer first and … The result can be saved to a temporary layer and shows up in QGIS after calculation. An disadvantage may be, the a totally new layer is created, instead of just a new field is created. …
Andreas Müller's user avatar
2 votes
Accepted

Setting up PyCharm 64bit with QGIS 64bit OSGeo4W64 installation on Windows

With qgis3 you'll need a different environment: call "C:\OSGEO4W64"\bin\o4w_env.bat call "C:\OSGEO4W64"\apps\grass\grass78\etc\env.bat call qt5_env.bat call py3_env.bat path %OSGEO4W_ROOT%\apps\qgis … =%OSGEO4W_ROOT%\apps\qgis\qtplugins;%OSGEO4W_ROOT%\apps\qt5\plugins set PYTHONPATH=%OSGEO4W_ROOT%\apps\qgis\python;%PYTHONPATH% Didn't test with PyCharm, but the new environment should be the same for …
Andreas Müller's user avatar
2 votes
Accepted

CRS, units and measures in QGIS

Projection is flattening the world into a plane, which leads to distortions of angles, distances and area. So be carefull what projection you use. WGS84 is a geographical coordinate systems, its meas …
Andreas Müller's user avatar
4 votes
Accepted

Is there a way to add a Geopackage in QGIS 2.18.20 like QGIS 3?

DB-Manager is a buildin-plugin with extended functionality for qgis and gives you the possibility to use GeoPackages in QGIS 2.18. …
Andreas Müller's user avatar
3 votes

Changing QGIS Python Plugin Directory

There is an start option for QGIS called configpath. You can change it by editing the batch file in the bin directory, which calls qgis. … The last line should look like this: start "QGIS" /B "%OSGEO4W_ROOT%"\bin\qgis-ltr-bin.exe --configpath %HOME%\.qgis2 %* If you don't have write access to the directory (normally C:\OSGeo4W\bin) you …
Andreas Müller's user avatar
1 vote

startup.py in QGIS not executed

QGIS does only execute core python plugins from this folder and these plugins can't be extended. Try to store a plugin there, it will not be touched by qgis. … consists of a folder whith file init.py, a function named classFactory and more, described in the pyqgis developer cookbook At least there is a chance to have a "system wide startup.py" by opening a QGIS-Ticket …
Andreas Müller's user avatar
7 votes

Get the length of all lines in Python QGIS?

Here is a way to sum up the values with a for-loop: lyr = iface.activeLayer() total = 0 for feat in lyr.getFeatures(): total += feat.geometry().length() print(total)
Andreas Müller's user avatar
3 votes

Strange results with Voronoi polygons in QGIS

The base of the voronoi tessalation is a triangulation between the points. The edges of this triangulation are cut on half distance between two points. This is the position where the edge of the tessa …
Andreas Müller's user avatar
1 vote
Accepted

Creating sloped lines from XYZ in QGIS

Inside the following example i assume to have a layer loaded inside qgis containing line string features and two fields named "from" and "to" which store the elevetion values for the first and the last …
Andreas Müller's user avatar
1 vote

Execute sql query from QGIS

elephant head) by clicking New and fill the form to connect (mainly host, port and user) and close the window Go to menu mentioned by Fjellrev and open the SQL-Window To show your query as a layer in qgis
Andreas Müller's user avatar
8 votes
Accepted

Deleting all custom CRS from QGIS

To do that, close QGIS, make a copy of that db-file (if something goes wrong...), and open qgis.db in a sqlite-database sql-monitor, like spatialite-gui or sqlitebrowser. … Make sure to disconnect your sql-monitor from the database (close it) and start qgis again. …
Andreas Müller's user avatar
2 votes
Accepted

How to derive a hydrologically correct DEM from point shapefile using QGIS?

Second, I think there are tools in grass, callable from qgis, to make a depressionless dem, like the r.fill.dir tool. …
Andreas Müller's user avatar
0 votes
Accepted

qgis utils.py appends to a dictionary / hash

If the problem is to load a plugin inside qgis python console, you may check this code: import qgsAffine # or another plugin modul plugin = qgsAffine.classFactory(iface) # standard interface for register … a plugin in qgis plugin.initGui() # build the gui of the plugin plugin.run() # open the plugin (show it's dialog window) Here i use the plugin qgsAffine to demontrate the interface between QGIS and …
Andreas Müller's user avatar

15 30 50 per page