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
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
>
> 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
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
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
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 : *
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
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
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
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”.
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
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
12 matches
Mail list logo