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 23263

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

2 votes
1 answer
460 views

Opening empty project with PyQGIS

I am trying to open an empty project using PyQGIS: All the answers I can find relate to already existing projects. i.e. they load a file like this: project = QgsProject.instance() project.read('file. …
BritishSteel's user avatar
  • 6,657
1 vote
1 answer
185 views

Opening the PyQGIS editor programmatically

I can open the console programmatically, using: qgis.utils.iface.actionShowPythonDialog().trigger() Is there a way to additionally open the console's editor (the window where you can enter multiple …
BritishSteel's user avatar
  • 6,657
3 votes
1 answer
591 views

Autosizing all fields in a QGIS attribute table

Is there a way to autosize all fields in an attribute table? I am working with attribute tables that have over 50 columns and all of them have long names. Instead of autosizing single columns via dou …
BritishSteel's user avatar
  • 6,657
2 votes
Accepted

Unable to add a Copernicus WMS to QGIS

Got it to work by using http instead of https. So instead of using the URL that you find on the Copernicus website: https://copernicus.discomap.eea.europa.eu/arcgis/services/GioLand/VeryHighResoluti …
BritishSteel's user avatar
  • 6,657
2 votes
2 answers
778 views

Unable to add a Copernicus WMS to QGIS

I am trying to add the following WMS to QGIS: https://land.copernicus.eu/pan-european/high-resolution-image-mosaic/very-high-resolution/vhr-2012 It is published by ArcGIS for Server and here is the URL … However, I am unable to connect to it in QGIS (2 + 3). I've tried loading it with the buttons Add WMS/WMTS Layer and Add ArcGIS MapServer Layer, but keep getting the following error: …
BritishSteel's user avatar
  • 6,657
1 vote
1 answer
650 views

Creating a memory layer without the CRS dialog in PyQGIS 3

I am trying to create a memory layer: tempLayer = QgsVectorLayer('LineString', 'my_temp_layer', 'memory') But as soon as this line is excecuted (not when I add it to the map!) the CRS dialog pops u …
BritishSteel's user avatar
  • 6,657
9 votes
1 answer
286 views

Documenting custom Python functions in QGIS

How can I document my custom Python functions in QGIS? …
BritishSteel's user avatar
  • 6,657
7 votes
2 answers
898 views

Deleting custom functions in QGIS Field Calculator

Is there a way to delete custom functions (e.g. extractZipCode in the screenshot below) from the QGIS Field Calculator without having to look into the expressions folder on disc? … I know I can simply delete the Python script in this folder: C:\Users\admin\.qgis2\python\expressions But is there a way to actually do it from within QGIS? …
BritishSteel's user avatar
  • 6,657
9 votes
2 answers
2k views

Using memory layer as input and/or output with runalg?

Can a memory layer be used as an input and/or output with runalg? With runandload I get this to work: processing.runandload("qgis:mergevectorlayers","memory:bufferOne", "memory:bufferTwo", r"memory …
BritishSteel's user avatar
  • 6,657
5 votes

Make given number of points at evenly spaced on line in QGIS?

In QGIS there is a tool that can create points along a line. You can find it in the Processing Toolbox under GRASS commands. …
BritishSteel's user avatar
  • 6,657
5 votes

Split feature by line in PyQGIS

A simple way would be using The polygon-line intersection tool from the SAGA toolbox. This would work: import processing polys = QgsVectorLayer(r"C:\PyQGIS_Test\polys.shp", 'poly', 'ogr') lines = Qg …
BritishSteel's user avatar
  • 6,657
4 votes
1 answer
371 views

Adding a PyQGIS Plugin to the Database Menu

I am developing a plugin which I would like to add to the Database menu instead of the default Plugins menu. According to the PyQGIS Developer Cookbook all I have to do is add category=Database to …
BritishSteel's user avatar
  • 6,657
3 votes
Accepted

QGIS Editing: move - both - nodes after Cut has been performed

Figured it out, and it had to do with my understanding of the shapefile format. I was not aware that each feature has their own seperate boundaries. I used to think that one edge can be shared by two …
BritishSteel's user avatar
  • 6,657
3 votes
2 answers
656 views

QGIS Editing: move - both - nodes after Cut has been performed

I just ran into unexpected behavior while editing a polygon shapefile in QGIS 2.8.2. …
BritishSteel's user avatar
  • 6,657
2 votes

How to close a polyline in QGIS while digitizing?

The easiest way would be the following: enable snappig on the line layer that you are using to digitize digitize the line, but finish your sketch before you close it digitize another line, start dig …
BritishSteel's user avatar
  • 6,657

15 30 50 per page