Questions tagged [categorized-renderer]
The categorized-renderer tag has no usage guidance.
50
questions
0
votes
0
answers
37
views
Create distance buffer for virtual layer with categorized symbology QGIS 3.34
I want to create a virtual layer with a fixed buffer distance e.g. 1000 m from a buliding layer as input. The building layer contains information about its use in colum X of its attribute table. The ...
1
vote
0
answers
43
views
QGIS 3.22.16 using a unique color for each category
I am using QGIS 3.22.16. I am trying to symbolize multiple land owners using the categorize option. However, the random selection brings similar color for different landowner. I tried to use different ...
1
vote
0
answers
50
views
Automatically update categorized symbology when adding new text values
Is there a way to automatically update the categorized (or rule-based) symbology based on random colors to take into account new values?
My question is particularly true when dealing with a text ...
2
votes
1
answer
158
views
Automatically update category styling in QGIS when adding/deleting features
I have a layer where each feature represents a route, and I want these routes to be automatically categorized based on their unique IDs. In other words, if I have two routes, I should have two ...
6
votes
1
answer
237
views
Show a fixed number of decimals in expression for vector categorized styling
So I am creating a categorized styling using an expression involving float numbers.
The results looks like this
The first row is displayed as "0 - 0.2m"
Is there a way to set in the ...
2
votes
2
answers
174
views
How to ensure a newly created layer displays on the canvas
I am trying to perform some categorization from an existing vector layer such that after performing the calculations, a new vector layer is created with just the new fields created. After running my ...
1
vote
0
answers
40
views
Categorize the symbology using column "Type" by SVG symbols with a nested category using column "Hazard Risk" (Color) in QGIS
I have point data and I already categorized it using specific SVG symbols. Now, what I want to do is to categorize further the SVG symbols by color (Low, Moderate, High, Very High).
Is there a faster ...
1
vote
0
answers
155
views
Setting symbol level to the symbols with pyQGIS
I am able to apply a style to a vector called "merged_zone".
Here my script:
# Symbol
sym1 = QgsFillSymbol.createSimple({'color': '#bed2ff', 'outline_color': 'black'})
sym2 = QgsFillSymbol....
3
votes
2
answers
182
views
QGIS expression not working in categorized symbology
In layer properties, when I want to work with categorized symbology, I categorize > value > concatenate(code 1, code 2) and after that, I click on "classify". And QGIS doesn't work (...
5
votes
1
answer
389
views
Check and uncheck the child tree layers created by using a graduated renderer
My PyQGIS script creates a number of layers, including one with a Graduated symbol renderer "DE Single", which splits my line symbols into 8 ranges e.g. -150 to -105.
I have PyQGIS code to ...
0
votes
1
answer
269
views
Modify layer's renderer with pyQGIS (QgsGraduatedSymbolRenderer)
I want to modify the color ramp of my layer in pyQGIS like I would do it in the layer properties :
I identified QgsGraduatedSymbolRenderer().updateColorRamp(ramp=color_ramp) as the function to update ...
2
votes
1
answer
169
views
How to export images through Layout Manager by switching the display of categorized render one by one
I recently started using QGIS to create distribution maps of organisms. OS is Windows 10, and QGIS version is 3.24.1.
What I want to do is how to export a large number of images by switching the ...
1
vote
1
answer
702
views
Batch saving multiple rendered images in QGIS
Using 3.16.3-Hannover
I have multiple images with a an applied singleband pseudocolor symbology. I'm looking for a way to batch export them. I came across the following code, but it exports the raw ...
2
votes
1
answer
400
views
How to reorder categorical raster legend order in R
For example, I have a landcover raster and I want to use terra::plot to make a map.
library(terra)
test <- rast('test.tif')
plot(test)
The order now is "3,4,6,8". Now I want to reorder ...
0
votes
0
answers
155
views
Invalid classificationField when updating symbology via ArcPy
I'm new to defining symbologies via ArcPy. I have some code (snippet below) that identifies broken links in .aprx files, sets a new data source & refreshes the symbology data range of this new ...