[QGIS-Developer] py3_env not recognized in versions later than 3.16

2023-06-13 Thread Luis Eduardo via QGIS-Developer
HelloI need to install Pytorch in QGIS 3.22, 3.28, using pip but I can't configure the environment, py3_env is not recognized.And through the OSGEO installer the library is not available. ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org

[QGIS-Developer] How can I load a color map from txt file into a raster layer using PyQGIS?

2022-11-20 Thread Luis Eduardo via QGIS-Developer
Hi I need to configure a pseudocolor symbology of a raster image using a color map file in txt format using PyQGIS, how can I do it, what class allows me to access to this configuration? This can be done manually with the buttons located at the bottom of the Layer Properties, in the pseudocolor

[QGIS-Developer] How can I make a custom QgsMapCanvasItem visible in the layout?

2021-10-22 Thread Luis Eduardo
I'm working on a plugin that requires the creation of one or more custom QgsMapCanvasItem, but I've noticed that they are not visible in the layout.QGIS QgsMapCanvasItems like annotations are visible, is it possible to make a custom QgsMapCanvasItem visible in the layout?

[QGIS-Developer] How can I make a custom QgsMapCanvasItem visible in the layout?

2021-10-21 Thread Luis Eduardo
I'm working on a plugin that requires the creation of one or more custom QgsMapCanvasItem, but I've noticed that they are not visible in the layout.QGIS QgsMapCanvasItems like annotations are visible, is it possible to make a custom QgsMapCanvasItem visible in the layout?

[QGIS-Developer] How can I save a global or project variable that is a reference to an object?

2021-09-12 Thread Luis Eduardo
HiI am working on an expression that creates an object, I need the reference to the object to be visible by other expressions. I can create a global, project, variable with: param='hello'param = QgsExpressionContextUtils.globalScope().variable('param') But it only allows me to store text or

[QGIS-Developer] Is it possible to access the persistent spatial index (.qix file) through PyQGIS?

2021-01-14 Thread Luis Eduardo
I built a manual index on a shapefile, through the process "Create spatial index", which can be found in the process toolbox > general vector tools. This process creates a persistent spatial index, a .quix file. I want to optimize spatial queries on layers that have more than 300,000 records

[QGIS-Developer] Is a plugin for QGIS3 with the user interface defined by code acceptable for the repository?

2020-09-06 Thread Luis Eduardo
Hello everyone I am working on a plugin, I have created a minimal Plugin, the user interface (dialog) I have defined by code. Without using Qt Designer.If I would like to upload this plugin to the QGIS repository, for the community in general, would it be acceptable? In that case, how can I

[QGIS-Developer] QgsRasterBandStats returns nan for mean and sum of squares in QGIS3.4

2020-08-30 Thread Luis Eduardo
Greetings, I would greatly appreciate your help. I have a problem with certain raster files in QGIS 3.4. When requesting statistics via QgsRasterBandStats the average, the sum returns nan.The other statistics minimum, maximum, sum of squares and standard deviation if they return expected

[QGIS-Developer] Error in raster histogram in QGIS3.0 with PyQGIS

2020-08-27 Thread Luis Eduardo
parameters. As well as placing None,None, but I still did not get a result Thank you, I look forward to your help Luis Eduardo PerezVenezuelaDeveloper in formation :) ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https

[QGIS-Developer] Working with QgsHistogram seems to be slower than Gdal-numpy

2020-08-13 Thread Luis Eduardo
Greetings, my name is Luis Eduardo, I'm working on a plugin for QGis for general use. The function of the plugin is to create an interface (widget) that displays the histogram of the raster files present and facilitates the analysis of their statistics. Here is a sample (in Spanish) https