Linked Questions

4 votes
1 answer
4k views

How to create a valid QgsVectorLayer from delimitedtext?

I am having trouble loading csv files into layers using QgsVectorLayer(). I know this looks like a repeat, but I have carefully read Create a script to add delimited text layer in QGIS and http://...
andrew's user avatar
  • 253
4 votes
2 answers
621 views

Obtaining date data from layer name in QGIS

I have a column with name of the satellites image background (Landsat, Sentinel), in this name I have a date information into the text. How do I extract the date data from this text?
Newton Monteiro's user avatar
1 vote
2 answers
2k views

Generate PNG/JPG maps from multiple ASCI/GeoTIFF in Python/GDAL

I need to generate maps (saved in PNG, JPG or PDF) from raster files (for each file - one map) which meets following criteria; * each map has exactly the same color pallette, so that it will be easy ...
matandked's user avatar
  • 681
4 votes
1 answer
659 views

How to get QGIS canvas in plugin window? [closed]

I'm working on project where I need insert QGIS canvas as a widget in QGIS plugin. When user click on button it should be loaded into widget. Something like this, this is example where satellite map ...
Ivan's user avatar
  • 145
3 votes
1 answer
1k views

How to calculate GRASS covariance matrices in QGIS with r.covar?

I would like to calculate covariance matrices between different bands of the same raster in QGIS (2 or 3). I have found only one built-in processing tool capable of doing this, named r.covar from ...
15Step's user avatar
  • 2,430
1 vote
0 answers
1k views

QGIS add '.tif' raster layer using pyQGIS,bug QGIS?

i want to try to add raster layers(.tif) in QGIS using pyqgis first in python console first and after in the new QGIS plugin but i am very confused with that and specific to add tif rasters layers. i ...
Chris Papas's user avatar
1 vote
1 answer
839 views

Load raster list in pyQGIS [closed]

I've started learning pyQGIS and the first step was to work on easy things like to add raster and vector in QGIS. So, I found this code in Loading raster layer using PyQGIS? and it works fine and is ...
jessie jes's user avatar
  • 1,061
3 votes
0 answers
472 views

Adding raster layer from WMTS URL using PyQGIS

I am trying to add a WMTS raster layer in QGIS 3.8 using Python (for my plugin). I have found this Loading Layers - Raster in the documentation, but I cannot make it work. I tried this: ...
Raphael Bahuau's user avatar
3 votes
0 answers
468 views

minidump written to C: in QGIS PLUGIN

I have created a simple QGIS script using QGIS 2.18.3 and windows 10 and it works fine without errors.But I want to move that script to another PC where I have QGIS 2.6 and windows 7. I first copy-...
Chris Papas's user avatar
0 votes
1 answer
251 views

Loading raster from WMS in a QGIS Plugin

(I have since found a solution and added it as an answer) I am currently creating my first Plugin for QGIS using the 'Plugin Builder'Plugin, QtDesigner and Python. At this point it's just supposed to ...
JannisM's user avatar
  • 11
1 vote
0 answers
127 views

qgis.core failing to load raster layer

I'm trying to load a raster tif file using python qgis.core script only (outside the qgis gui application) but the 'isValid()' function fail to validate the raster, no matter which raster file I try. ...
user123442's user avatar
1 vote
0 answers
51 views

Output layer doesn't get created [closed]

Why isn't my heat layer valid and I don't get a .tif in this location (this location exists 100%)? Code below: output = "D:/QGIS_Project_New/heat_map_last.tif" heat = QgsRasterLayer(output, "Heatmap")...
John Doe's user avatar