[QGIS-it-user] Form Salva Carica Stile

2023-05-09 Per discussione Giulio Fattori
Buongiorno, è possibile dalla console python aprire le form Salva e Carica stile (quelle accessibili da proprietà del layer) o anche lanciare il comando sottostante a Stile, ed utilizzarne la risposta? Grazie a presto Giulio ___ QGIS-it-user

Re: [Qgis-user] [pyqgis] create new raster

2023-05-09 Per discussione WhereGroup
What kind of error do you get if you uncomment your datatype line? What value does that datatype have? Does it work if you pass the number 6 as datatype? What does the QGIS GUI say about the original and the created layers datatypes in their properties dialogs? Am 2023-05-09 16:23, schrieb

Re: [Qgis-user] [pyqgis] create new raster

2023-05-09 Per discussione andrea antonello via QGIS-User
> > What do you mean by "new raster"? What is supposed to be in it and how > should its extents, CRS etc be defined? > Well, I might want to create the extents + crs based on a different raster, but I also might want to create it based on some user input. For example if I write a module that

Re: [Qgis-user] [pyqgis] create new raster

2023-05-09 Per discussione WhereGroup
What do you mean by "new raster"? What is supposed to be in it and how should its extents, CRS etc be defined? Do you have existing data that you want to use to create it? Or why is a constant value raster not what you want? If you want to base it on an existing raster, best use a raster

Re: [Qgis-user] [pyqgis] create new raster

2023-05-09 Per discussione andrea antonello via QGIS-User
Hi and thanks for the replies. As for my other email related to reading a raster, I wanted to investigate the possibility of creating a raster using pure pyQGIS API. It seems that it isn't possible without using at least the constantmap processing algo. But I was hoping that it would be possible

Re: [Qgis-user] Lizmap/qgis server : Setting up with PostGIS database

2023-05-09 Per discussione celati Laurent via QGIS-User
Hello, Following to my previous message, i share an update of my qgis server and lizmap messages. For those tests, in addition to the .qgs file, i put on the server the .qgs.cfg. Is it mandatory to do this ? Please read below the qgis server and lizmap messages : *qgis server : *

Re: [Qgis-user] For Andrea

2023-05-09 Per discussione Andrea Giudiceandrea via QGIS-User
Riccardo riccardopani at hotmail.com Tue May 9 01:22:58 PDT 2023 I've solved the problem with multipolygons, many thanks!! Hi Riccardo, could you please explain what was the root cause of your issue and how did you fix it? This would be useful for other users facing the same issue. Best

Re: [Qgis-user] [pyqgis] create new raster

2023-05-09 Per discussione Richard McDonnell via QGIS-User
Hi Andrea, Please disregard my last email the formula is incorrect. Apologies.. Richard —— Richard McDonnell MSc GIS, FME Certified Professional FRM Data Management —— Oifig na nOibreacha Poiblí Office of Public Works Sráid Jonathan Swift, Baile Átha Troim, Co na Mí, C15 NX36 Jonathan Swift

Re: [Qgis-user] [pyqgis] create new raster

2023-05-09 Per discussione Richard McDonnell via QGIS-User
Hi Andrea, If you are ok substituting the method you are using for GDAL, then you can use the following.. gdal_calc.py -A input.tif --outfile=result.tif --calc="(A>=-2000)*(A<=1500)" --NoDataValue=- You can also implement this in QGIS using GDAL Calculator from the Processing Toolbox, It

[Qgis-user] For Andrea

2023-05-09 Per discussione Riccardo via QGIS-User
HI Andrea, I've solved the problem with multipolygons, many thanks!! Now I'm trying to solve a self-generation ID problem, I sent two posts, the first was published, but I don't know for the second, I had inserted attachments and I got a message of “waiting for verification by a moderator”.

Re: [Qgis-user] [pyqgis] create new raster

2023-05-09 Per discussione Ujaval Gandhi via QGIS-User
Instead of manually iterating over the raster, you can use the 'Raster Calculator' Algorithm to set the pixel values which will be much easier and will resolve your issues. Test it with the processing toolbox and then all via PyQGIS with the required parameters. I tested and the following

[Qgis-user] [pyqgis] create new raster

2023-05-09 Per discussione andrea antonello via QGIS-User
Hello, I am trying to find out the best workflow to create a new raster. As an example I take an existing elevation model raster and loop over it to set values between 1500 and 2000 to novalue and write the result to a new raster. This is the only way I found to do so: # create new raster with