Bárbara Duarte
  • Member for 8 years, 4 months
  • Last seen this week
Adding label to QGIS map composer through Python script?
4 votes

Ok. My bad. The error was mine. The adjustSizeToText must be in the final of the definition of characteristics of the text. Sorry for that. If anyone has this problem, please put the ...

View answer
Remove layers in memory QGIS python
Accepted answer
2 votes

I found a solution. I could not to change the result obtained by self.canvas.layerCount() but if I use QgsMapLayerRegistry.instance().count() I get 0 if the layers are removed. So it is what I need. ...

View answer
Map canvas overlay layers QGIS
2 votes

I find a way of overlay vector files (if there is a vector file already open) and a raster file. orto = '...image.tif' fileCV = '.../layer1.shp' layers = [] # display file in canvas fileInfo = ...

View answer
Processing temporary outputs
1 votes

I find the error. If it can be useful to someone. Instead of feedback, I just replaced by QgsProcessing.TEMPORARY_OUTPUT in the OUTPUT parameter. Also in params_raster = { 'INPUT': str(out_classified),...

View answer
Access atributte processing algorithm
1 votes

Never mind. I found the answer to my question. The attribute field is given by the name of the attribute, so is only necessary to read the attributes of the layer (including the new attribute) and ...

View answer
SAGA hydrology toolbox Error: select a library
0 votes

I have troubles with the SAGA algorithm Edge Detection (Vigra) because the error referred in this post is happening. I have QGIS 3.18 (installed with OSGeo4W) and the SAGA version is 2.3.2-4. I see ...

View answer